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]
|