W3C home > Mailing lists > Public > www-style@w3.org > January 2000

Re: Inline h*ll

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Mon, 10 Jan 2000 16:14:02 -0800
Message-ID: <387A75CA.6C5C@yahoo.com>
To: www-style@w3.org
> Re: Inline h*ll
> >    Once more, with feeling:
> >
> >    P {line-height: 1.2; font-size: 12pt;}
> >    BIG {font-size: 300%; vertical-align: middle;}
> >
> 
> Effectively
> P {font-size: 12pt; line-height: 14.4pt}
> BIG {font-size: 36pt; line-height: 43.2pt; vertical-align: middle;}
> 
> Initially a 43.2pt line box is produced (max(line-height)). V-a: middle
> aligns its middle with the middle of the line box plus half the x-height
> of the parent box. Therefore the middle of BIG's box is aligned with the
> point 21.6 + (half-x-height) - say 25pt. As a result, the top of the
> line box is 25 + 1/2*43.2 = 46.6pt above the pottom, and thus it is 46.6
> pt high.

Sorry, I got this wrong v-a: middle aligns the middle with half the
x-height of the parent box, no middle at all.
Received on Monday, 10 January 2000 11:13:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:02 GMT