here is the address....
www.geocities.com/deronsizemore/index5.htm
I don't know why. It does it in IE 5.5. All above that it seems to be fine.
Thanks,
Deron
| SitePoint Sponsor |
here is the address....
www.geocities.com/deronsizemore/index5.htm
I don't know why. It does it in IE 5.5. All above that it seems to be fine.
Thanks,
Deron





In the body tag put text-align: center; and in #container put text-align: left;
That should fix it.
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
why text-align: left; in the body tag?





No, text-align: center; in the body tag.
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
my bad...I meant #container





otherwise everything contained in #container will be text-align: center;
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
Just to clarify, theis so that the text within your body is not also centered in the middle of the page. Are you still confused or is this a dead discussion?HTML Code:text-align: left;
Edit: oops, The New Guy beat me...


Deron have a look at the FAQ sticky thread on centering if you are still unsure![]()
IE 5 and 5.5. (and ie6 in quirks mode) cdon't understand margin-left:auto and margin-right:auto and don't realise that is should centre block level elements that have a specified width.
Instead they wrongly assume that text-align:center not only centres text but nested block level elements as well. Which is why you need text-align:center on a parent such as the body in order to centre the element nested within.
Of course you then need to set the text back to text-align:left for the nested element otherwise the text will be centred as well.
Paul
Bookmarks