Previous Message
Next Message

Vertically align a div when height is dynamic

Sent by Richard Grevers on 15 March 2006 18:06

On 3/11/06, Aaron Seelye [EMAIL-REMOVED]> wrote:
> Sorry about the lack of details, I'll try to do better.  I'm looking at
> aligning the div in relation to the viewport.
> is what I'm working on, I'd like the
> actual content to be in the middle of the viewport, rather than bumping up
> on the top.
Sorry about the late reply - I'm backlogged :-)
The relevant page on the css-discuss wiki is - scroll to
the bottom.
Most techniques listed require you to know the height of the div you
are centering. One doesn't :
It needs 3 nested divs to work in IE. You can see it in action at

Richard Grevers, New Plymouth, New Zealand
Hat 1: Development Engineer, Webfarm Ltd.
Hat 2: Dramatic Design
css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: