Previous Message
Next Message

Vertical alignment of text within div

Sent by "Choan_C._Gálvez" on 22 June 2004 15:03


Gee, David wrote:

>[...]
>
>I've used the display:table-cell hack before. It's a hack. You lose a
>lot of control over the element when you do this. For example, if the
>element being displayed using "table-cell" style is contained within an
>element with "text-align:right", it will still render at the left of the
>container. 
>
Of course.  If it isn't an inline element, it must not be affected by 
text-align.

>Strictly speaking, this shouldn't be valid CSS. Any element
>with "display:table-cell" should have a parent with "display:table-row",
>which should in turn have a parent with "display:table".
>  
>
By spec, these sorrounding elements are automagically generated by the 
UA, see http://www.w3.org/TR/REC-CSS2/tables.html#anonymous-boxes

Regards,
Choan
______________________________________________________________________
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: