Previous Message
Next Message

Browser and platform compatibility

Sent by Adam Kuehn on 28 September 2005 23:11


Gunlaug Sørtun wrote (among other good bit of advice):

>For cross-browser compatibility year 2005: rewrite all 'font:....' so
>font-sizes are defined in 'em' or '%', and line-heights are in 'em', '%'
>or 'unitless', as IE/win can't resize fonts defined in px-units.

There are very few use cases that require 
line-heights with units (indeed, I can't even 
think of a single one).  I would strongly 
recommend that you use unitless line-height 
values as a matter of course.  Only if you are 
dead sure that you want the COMPUTED value of a 
line-height to inherit should you use a unit 
value.  Using units on line-heights is a very 
common way to break a website.

-- 

-Adam Kuehn
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: