Previous Message
Next Message

Vertical alignment of text within div

Sent by Steve Clay on 22 June 2004 13:01


Monday, June 21, 2004, 3:14:05 PM, Gee, David wrote:
GD> vertically centering content within a block ...
GD> CSS just doesn't support it. At all.
GD> Way to go, W3C. Next time, wait for the drugs to wear off
GD> before writing the specs, okay guys?

Nice troll, I'll bite.  CSS2 supports vertical centering just fine via
display:table-cell; vertical-align:middle, which works in most modern
non-IE browsers.

Techniques like the new negative-margin float article in ALA [1] show that
we still haven't discovered all that can be done with these old 1998
specs...when browser makers bother to implement them.

[1] http://alistapart.com/articles/negativemargins/

Steve
-- 
http://mrclay.org/ * http://frenchhorns.mrclay.org/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: