Reply to Re: CSS inconsistent behaviour

Your name:

Reply:


Posted by Martin Jay on 05/14/06 14:36

In message <%SC9g.2624$iM3.635@newsfe3-win.ntli.net>, Ian Davies
<iandan.dav@virgin.net> writes
>I have a class in a style sheet to make text x-large.
>However it behaves differently on different pages. The text is large on one
>page, as it should be but not on the other even though the text on both
>pages uses the same style
>
>anyone know why this happens?

A URL would be helpful.

Font sizes are relative to the size of their parent element, so the
following two paragraphs have different font sizes, even though they
both have a font-size of 'smaller.'

<div style="font-size: 2em;">
<p style="font-size: smaller;">Hello</p>
</div>

<div style="font-size: 1.5em;">
<p style="font-size: smaller;">Hello</p>
</div>

--
Martin Jay
Phone/SMS: +44 7740 191877
Fax: +44 870 432 5180

[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

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