Sent by Christoph Päper on 10 December 2003 19:07
*Andy Budd*:
>
> I set the body to 67%,
What property of the body?
> the text within a div to 1.2 em and then the
> width of a child div to 50em.
>
> Is that 50em relative to the body font size or the font size
> of the parent div and
1em always equals the current font-size, the only exception being the
'font-size' property (and therefore the 'font' shorthand) where it is the
parent's font-size. Thus
<body style="font-size: 67%">
<div style="font-size: 1.2em">
<div style="width: 50em">
</div></div></body>
the inner-most 'div' is 50·1·1.2·0.67·$userfontsize wide. With the quite usual
16px this gives 643.2px.
> Is this consistent across browsers?
Except for rounding errors 'em' is pretty well supported, if you ignore IE 3.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/