Re: Inline h*ll

> 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 UTC