Posted by mbstevens on 06/02/06 22:16
fred.haab@gmail.com wrote:
> it might have something to do with the fact
> that em doesn't even represent the current font size, it represents the
> parent font size!
No:
"The 'em' unit is equal to the computed value of the 'font-size'
property of the element on which it is used. The exception is when 'em'
occurs in the value of the 'font-size' property itself, in which case it
refers to the font size of the parent element. "
http://www.w3.org/TR/CSS21/syndata.html
I happened to set width (not font size) for the ul in the demo page. It
could just as well have been set for the li elements. Whatever you set
it for is set for the element, not the parent.
that element.
[Back to original message]
|