|
Posted by Jukka K. Korpela on 03/23/07 11:38
Scripsit dorayme:
>> BODY { line-height: 1.2; }
>>
>> Appears to fix it.
>
> I have heard of doing this on the container in which the problem
> exists. But you are suggesting simpler, just on body no matter
> how it goes below. Most interesting and easy to remember.
Actually
* { line-height: 1.2; }
is even easier and probably safer. That way, any potentially offending
element has line-height set directly, not just via inheritance, which is -
as we know - problematic not only to most CSS authors but also to CSS
implementations.
Besides, for most fonts actually used on web pages, 1.2 is too small, but
that's a different issue. The fixing effect does not depend on the value
used, only on the setting of line-height value to _something_.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Navigation:
[Reply to this message]
|