Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-16-2008, 12:21 PM Center Website IE7
Whytey's Avatar
Experienced Talker

Posts: 32
Location: United Kingdom
Trades: 0
I was tweaking code on my website, it displays properly in FF and Opera but now in IE7 it positions the site to the left of the page instead of the center, is there a hack needed to fix it?
Whytey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-16-2008, 12:25 PM Re: Center Website IE7
pealo86's Avatar
Super Spam Talker

Posts: 849
Name: Matt Pealing
Location: England, north west
Trades: 0
I think IE7 centre's with

Code:
body {
text-align:center;
}
Cant really tell though without seeing your code
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 03-16-2008, 12:27 PM Re: Center Website IE7
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
No, that is only to make IE 5.5 and below center.

IE7 will behave properly with the margin: 0 auto;, provided that you have set a defined width on the element you're trying to center.

Read this sticky: http://www.webmaster-talk.com/css-fo...r-website.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-16-2008, 12:52 PM Re: Center Website IE7
Whytey's Avatar
Experienced Talker

Posts: 32
Location: United Kingdom
Trades: 0
I just added text align: center; to the body and text-align: left; to the container, its displaying properly now
thanks

Last edited by Whytey; 03-16-2008 at 01:00 PM..
Whytey is offline
Reply With Quote
View Public Profile
 
Old 03-17-2008, 03:29 PM Re: Center Website IE7
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Like LadynRed stated, text-align:center; for the body is not needed for IE6 and up.
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Center Website IE7
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16028 seconds with 12 queries