I don't believe you can stop the inheritance. You should try using the
keywords which are relative to the users font-size setting. Xx-small
x-small small etc... Otherwise you might can try mixing and matching
percentages with ems? I have not tried it but maybe something like:
<div style="font-size: 0.90em;">
Some text
<div style="font-size: 90%;"> //<-- maybe that will make it 90%
OF .90em essentially dropping the size 10%?
More text
</div>
Some text
</div>
Buddy
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Janelle Clemens
> Sent: Thursday, August 25, 2005 4:51 PM
> To: '[email protected]'
> Subject: [WSG] Font-size em and reseting within
>
>
> 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
******************************************************