On Apr 15, 2004, at 09:06, Gabriel Wicke wrote:
div again, we don't really know what will be
inside the center tags.
Could be another div for example, or a table.
In my experience, <div style="text-align:center"> and <center>
don't do
the same thing. Mozilla's standard stylesheet uses a custom -moz-center
setting to achieve the <center> rendering.
Demonstration:
http://leuksman.com/misc/div-center.html
The <div> inside the <center> block is centered in its parent's content
area, but the <div> inside the <div style="text-align:center"> block
actually shows up left aligned (though the text inside it is centered).
Mozilla's default stylesheet uses a custom "text-align: -moz-center" to
achieve <center> rendering, which makes me think there's just no good
way to emulate it completely with CSS2.
Anyway, while <center> is forbidden in XHTML 1.0 Strict, it's *not*
forbidden by XHTML 1.0 Transitional. Might be better to leave the
<center>s as they are for now.
-- brion vibber (brion @
pobox.com)