Yes the page is not centered in IE8. You need to change the CSS as follows:
body {
color: black;
font-size: medium;
font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
background-image: url(graphics/graytile.gif);
text-align: center;
}
#container {
background-color: white;
margin: 0px auto;
width: 800px;
text-align: left;
}
Effectively, I have inserted Text-Align in body to be centered and text-align
in container to be left and as long as you don't mess around with margins (0
auto) you should be alright in all major browsers.
hth
--- On Wed, 6/9/10, TriState Advantage, Kris Jacobson
<[email protected]> wrote:
> So this time I tried to create my own CSS stylesheet. I am
> trying to get a centered page. I have a div around the page
> with 800px size and auto margins but it isn't centered.
> I did validate the css and html just to double check and
> they came up clean.
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/