Posted by Neredbojias on 04/06/06 21:17
To further the education of mankind, "City Dweller" <city@dweller.com>
declaimed:
> Hi all,
>
> Does anyone here know how browsers calculate the leading (vertical
> distance between base lines) in a paragrap?
>
> For example, consider this HTML code:
>
> LINE1<P>LINE2
LINE1 and LINE2 aren't in a (-the same) paragraph...
> How is the vertical difference between the baselines of LINE1 and
> LINE2 calculated? I am writing an HTML rendering application and can't
> figure it out. Apparently it depends on the font size and metrics, but
> how exactly?
Normal vertical line distance can be adjusted by the css line-height
property. I've noticed that the default is not the same in all browsers
(but when I've set it, it _appeared_ to match.)
--
Neredbojias
Infinity can have limits.
[Back to original message]
|