On Aug 26, 2005, at 5:12 PM, Lea de Groot wrote:

I didn't write the rule under scorn, the original thread follows this reply.

I'm not a fan of inline styling or piling up values. I've worked with stylesheets since "Designing Killer Websites" by Dave Siegel; having quickly embraced the need for the separation of style and content and behavior.


This I hope lends some validity to my dedication of furthering web- standards, as it appears sometimes in question.


Respectfully,
Chris Kennon

On Fri, 26 Aug 2005 05:53:20 -0700, Chris Kennon wrote:

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


Generally I tend to think its 'bad typography' to have different sizes
all over the page.
In the rare case where this was what I actually wanted to achieve, I
would set the "0.80em" value to 0.9em in the knowledge that 0.9 * 0.9
is 0.81 and thats the value I wanted.
You can't reset the tree, but you can understand what changes as you
descend it.

warmly
Lea
--
Lea de Groot
Elysian Systems - http://elysiansystems.com/
Brisbane, Australia
******************************************************
The discussion list for  http://webstandardsgroup.org/

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



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