W3C home > Mailing lists > Public > www-style@w3.org > October 2001

Re:Re: How is it possible to devise such a feeble system?

From: Sampo Syreeni <decoy@iki.fi>
Date: Wed, 24 Oct 2001 20:17:25 +0300 (EEST)
To: Andrew McFarland <andrew.mcfarland@unite.net>
cc: <www-style@w3.org>
Message-ID: <Pine.SOL.4.30.0110242015050.506-100000@kruuna.Helsinki.FI>
On Wed, 24 Oct 2001, Andrew McFarland wrote:

>>Using CSS how can I center the inner DIV or really the text within the
>>inner DIV horizontally and vertically?
>
>I'm pretty certain you can't.

I don't think this is quite true. Use absolute positioning for the outer
div and set it to display:table-cell with vertical-align:middle, or use
explicit height for everything.

Sampo Syreeni, aka decoy - mailto:decoy@iki.fi, tel:+358-50-5756111
student/math+cs/helsinki university, http://www.iki.fi/~decoy/front
openpgp: 050985C2/025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2
Received on Wednesday, 24 October 2001 13:17:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:11 GMT