Previous Message
Next Message

Vertical Centering

Sent by Michael Clayton on 23 March 2006 17:05

> I recall someone posting a very easy method of vertical centering a
> block in a viewport a while back. Seemed straight forward -
> positioning with percentages and a little negative margin nudging.
> Googled but came up empty.
> Can anyone point me to this? How cross-browser is it?

Here's another for the record:

I tried it in a bunch of browsers a few weeks ago.  It worked in more
than I expected.  As far as I remember, it worked in IE 5+, Opera 8+,
and Firefox.  No NN4 though.  Not sure about Mac browsers.


Michael Clayton
css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread:

Possibly related: