View Full Version : In FF it is centered; in IE it's lef-justified
I use IE so rarely that I didn't even notice that my blog is messed up in IE:
http://www.erinbilly.com/
In Firefox, it shows up centered, the way I expected.
Is it just me? I swear, the last time I checked it in IE, it was okay. I haven't really added much to the site...
Try text align: center in your body tag:
body {
font-size: 62.5%; /* Resets 1em to 10px */
font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
background-color: white;
color: #2A4010;
text-align: center;
line-height: 1.7em;
margin: 0;
padding: 0;
} You may have to alter your text to align left in your content style sheet.
PS - not tested so I could be wrong
Masetek
03-22-2006, 11:09 PM
Yeah that works:
In FF: margin: 0px auto;
In IE: body{text-align: center;}
Make sure you set you inner divs to text-align: left because in IE they will inherit the center attribute from the body tag
:goof:
Wow, I spaced on this post. I don't know what was happening then, but it's working now.
Thanks to both of you for your help, and I apologize for the delay in responding.
KelliShaver
04-16-2006, 08:28 PM
You don't need to do
body { text-align:center; }
in IE. Margin works just fine, but you have to specify it for all four margins, not just use the left/right, top/bottom pairs like you can in IE So...
margin:0 auto 0 auto;
Johnny Gulag
04-16-2006, 11:37 PM
You don't need to do
body { text-align:center; }
in IE. Margin works just fine, but you have to specify it for all four margins, not just use the left/right, top/bottom pairs like you can in IE So...
margin:0 auto 0 auto;This is a hack for IE5 I think to make the site center.
KelliShaver
04-17-2006, 09:10 PM
Works in 6, too.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.