Font-size in IE5/5.5 tables
If you’ve ever used tables in IE 5/5.5 you’ll know that the font-size is not inherited from the parent tags. So when you specified a specific font-size in your body tag, the default size will still be used inside the table.
Personally, to solve this, I specified the font-size again, for the table tag. Now, when you change your font-size in the body tag, guess what you forget? Yes indeed, the font-size in the table tag.
Anyhow, Andy Budd has a super simple solution. Just define a font-size of 1em to the table tag, like this:
table {
font-size: 1em;
}
Iva posted this response on May 31st, 2004 at 11:18 am
Hmmm….as far as I can remember, for me, back in IE 5.5 days it worked with defining fonts for td tag.
Benjamin posted this response on May 31st, 2004 at 11:39 am
That is exactly what is avoided with this. You don’t have to specify fonts since it is inhereted from its parent with this technique.