Sent by Philippe Wittenbergh on 21 June 2002 08:08
On Friday, June 21, 2002, at 02:03 , Big John wrote:
> Let's say I have a page with the 'line-height' set to some value,
> perhaps '110%'. Then in a div I specify 'font-size:6em;' in order
> to make some text real big.
>
> Should the line-height for that div be adjusted by the browser
> to match the increased font-size? I ask because none of the major
> modern browsers actually do this. To make it happen I must
> apply a line-height to that div.
As far as i understand, specifying line-height globally (on
<body>) will affect all boxes. So if you specify:
body {
font-size: 1em;
line-height: 1.5 em;}
This will be the line-height set for the whole document,
E. Meyer confirms this: <Quote>...the number itself is inherited,
not the computed value.</quote>
(from E.Meyer, Cascading stylesheets, the definitive guide. p415).
Have Fun,
Philippe
=ˆ|ˆ==ˆ|ˆ==ˆ|ˆ==ˆ|ˆ==ˆ|ˆ==ˆ|ˆ==ˆ|ˆ==ˆ|ˆ==ˆ|ˆ==ˆ|ˆ==ˆ|ˆ=
Philippe Wittenbergh
code | design | web projects : < http://www.l-c-n.com/>
online image gallery : <http://www.l-c-n.com/phiw/>