Hi,

Maybe something like:


div#something *{
 font-size: 0.9em;


}


On Aug 25, 2005, at 2:51 PM, Janelle Clemens wrote:

If you are using em with font-size is there is a way to clear the font-size
of a box element (stop the inheritance)?    I am having a hard time
explaining myself so maybe an example would be better.


So if you have this code, the "More text" would be 0.80em relation to the
0.90em.

<div style="font-size: 0.90em;">
    Some text
    <div style="font-size: 0.80em;">
        More text
    </div>
    Some text
</div>


Is there a way to reset the font-size on the second div so the 0.80em is actually 0.80em relation to the body of 1.0em without having to code like
this?

<div style="font-size: 0.90em;">
    Some text
</div>
    <div style="font-size: 0.80em;">
        More text
    </div>
<div style="font-size: 0.90em;">
    Some text
</div>


Thanks,
Janelle
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************


******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to