Forum Moderators: not2easy

Message Too Old, No Replies

using em and nested tables

using em and nested tables

         

nippi

3:25 am on Aug 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I like the idea of using em instead of pxls or pts as the fonts can scale up and down depending on browser resolution, but when I write a style like this

td {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: .9em;
color: #616161;
}

and then nest 3/4 tables inside each other, on a mac the fonts become TINY. i guess .9 is applied for each table cell?

How do I do this using em so this does not happen?

Noisehag

7:38 am on Aug 25, 2004 (gmt 0)

10+ Year Member



What about applying it to the body instead of all the <td>'s? At least that way you know you will avoid compounding the em. From there you just style each <td> as needed.

TheDoctor

10:33 am on Aug 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try adding

td td { font-size:1em; }

This will prevent the .9em from being reapplied within each nest.