You are here: Re: center/shrink to fit redux. « HTML « IT news, forums, messages
Re: center/shrink to fit redux.

Posted by mbstevens on 06/02/06 22:16

fred.haab@gmail.com wrote:
> it might have something to do with the fact
> that em doesn't even represent the current font size, it represents the
> parent font size!

No:
"The 'em' unit is equal to the computed value of the 'font-size'
property of the element on which it is used. The exception is when 'em'
occurs in the value of the 'font-size' property itself, in which case it
refers to the font size of the parent element. "

http://www.w3.org/TR/CSS21/syndata.html

I happened to set width (not font size) for the ul in the demo page. It
could just as well have been set for the li elements. Whatever you set
it for is set for the element, not the parent.
that element.

 

Navigation:

[Reply to this 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

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