Re: A few questions and a critique request
- From: rf <rf@xxxxxxxxxxx>
- Date: Thu, 27 Oct 2005 02:25:10 GMT
sagejoshua wrote:
> I'm pretty sure that negative margins are far more cross-browser
> compatible (and suprisingly bugless) than auto margins. Netscape 4.x
> even renders negative margins correctly.
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.
Try it for yourself here:
http://www.snakebirdstudios.com/
Narrow the window to 640 pixels wide (not an uncommon size). Part of your
*navigation*, of all things, disappears.
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)
--
Cheers
Richard.
.
- References:
- A few questions and a critique request
- From: sagejoshua
- Re: A few questions and a critique request
- From: Neredbojias
- Re: A few questions and a critique request
- From: sagejoshua
- Re: A few questions and a critique request
- From: Neredbojias
- Re: A few questions and a critique request
- From: sagejoshua
- Re: A few questions and a critique request
- From: Neredbojias
- Re: A few questions and a critique request
- From: kchayka
- Re: A few questions and a critique request
- From: sagejoshua
- A few questions and a critique request
- Prev by Date: Re: protecting text
- Next by Date: Re: Photography site - layout pictures or use extension
- Previous by thread: Re: A few questions and a critique request
- Next by thread: Re: A few questions and a critique request
- Index(es):