|
Posted by sagejoshua on 10/23/84 11:30
>Using negative margins for centring is a Very Bad Mistake. If the viewport
>is less than the width of the centred content then the content disappears
>off the left hand of the viewport, never to be seen again. This content is
>not accessible *at all*, the horizontal scroll bar will not let you to go
>there.
Hmm, you've got a very good point. I got the idea from "The Zen of CSS
design." I guess you can't always trust what you read in books. Thanks
for taking the time to explain.
>To centre content use auto margins. For those browsers that do not support
>it correctly (IE 5.x and IE6 in quirks mode) then use a suitable hack
>(text-align: center;, hidden from other browsers, is one)
How would I hide the text-align from other browsers. I know how to
hide things from IE 5.x and below, but not the other way around.
Thanks again for your help.
Josh
Navigation:
[Reply to this message]
|