Previous Message
Next Message

Re: [css-d] vertical align and doctype

Sent by Peter-Paul Koch on 28 January 2002 14:02


>I'm trying to make this work in IE
>
>.mid {vertical-align:middle}
>
><tr class="mid">
>
>Works fine until I add the doctype for transitional 4.01. What wrong?

This is without a doubt one of the most annoying things about CSS: it's 
simply not possible to vertical-align something. As far as I can remember 
this is a feature, not a bug. But I have no idea why this is so.

As far as I can remember vertical-align should work only on inline elements 
(or pure text nodes) inside something (block level in general? Only DIV's? 
Can't remember). In any case the rules were very complex for no good reason. 
Could anyone explain, especially the rationale (or lack of it) behind this 
decision?

The worst thing is, browser vendors have not added general vertical-align 
support on their own initiative. This will become one of the worst CSS 
problems in the near future, extending the life-span of tables-for-layout 
with at least one year.

ppk


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Previous Message
Next Message

Message thread:

Possibly related: