Reply to Re: CSS line-height

Your name:

Reply:


Posted by dorayme on 09/11/06 09:54

In article <DE7Ng.9357$q06.8466@reader1.news.jippii.net>,
"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote:

> dorayme <doraymeRidThis@optusnet.com.au> scripsit:
>
> > If you are going to use line-height (make sure you need to), use
> > em.
>
> No, it is best to use just numbers. The reason is that the line-height
> property is rather special. If you declare, say, line-height: 1.5 (there's
> seldom a reason for such a large value, but let's pretend there is, like the
> original question did), then the _declared value_ 1.5 gets inherited. This
> means that if there is an element with a different font size, the
> line-height value gets adapted to the font size. If you declare line-height:
> 1.5em (or 150%), then the _computed value_ gets inherited.

Oooee! This is a subtlety I never knew. Right. Now I do. And will
read up on this sort of thing a bit more. I am sure that I learn
at least about five new things on alt.html a week...

--
dorayme

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация