Micky Hulse wrote:
> Felix Miata wrote:
> 
>> ... though it also specifies line-height: 1.25em, which should be 
>> changed to simply 1.25.

> Why does Yahoo specify line-height in EM's then?

> <http://developer.yahoo.com/yui/fonts/>

> A bit confusing... I assume Yahoo CSS gurus know what they are doing.
> 
Hopefully so, but I have no idea why anyone at Yahoo do anything :-)
You'll have to ask /them/.

Advice: never do something/anything just because someone/anyone - with
or without a reputation - does it.
Instead: learn whats going on an how it works, and choose what to do
based on your own - preferably complete - knowledge on the issue.

> I never specify a unit, but now I am wondering if I should.

Depends entirely on what you want that line-height to be calculated
from, thus end up as.

- Line-heights in em are calculated/computed based on inherited
font-size, *not* from each element's own font-size.

- Line-heights without unit are calculated/computed based on each
element's *own* font-size, and are *not* affected by inheritance.

This might seem confusing, since the resulting line-height may well end
up being the same. However, in layouts where font-size is altered and
inherited, the resulting line-height in em *will* be different from one
with unitless value.

  Needless to say that I use line-height in 'em', '%' and 'unitless'
values - depending on the effect I'm after. Mostly unitless though, to
avoid inheritance-complications.

I have left out the even more complicating parts where one can make one
end up as the other, or as something completely different, with 'em' and
clever "home made" calculations down the inheritance-chain :-)

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to