Previous Message
Next Message

Re: [css-d] body font-size inherited inside tables

Sent by Andrew Clover on 16 April 2002 04:04


Fabrice Pascal [EMAIL-REMOVED]> wrote:

> The font-size was not inherited when viewing the page with Opera
> 5.12, Opera 6.0 and IE 5 all on Windows.

Yes. Opera is emulating IE which is emulating Netscape 4's original
bug.

> Then I added doctype HTML 4.01 strict to my code and was once again
> very surprised: The font-size is, once again, not inherited when
> viewing the page with Opera 5.12, Opera 6.0 and IE 5 on Windows

Neither Opera nor IE5/Win use a DOCTYPE switch. You would notice a
difference on IE6/Win, and Mozilla.

Opera's performance is really disappointing here. They really should
either fix it or introduce a DOCTYPE switch.

> The only work-around we could find was adding :

> table {font-size: 1em !important;}

That is correct, though you don't actually need the !important.
It works in all but Netscape 4. I recommend this approach.

(There is no fix for N4, other than making sure no font-size other
than the default inherits into <table>, and then sizing <td>. Which
is a pain.)

> inherited colors work fine !

Yes, only font-size is not inherited, except in Netscape 4, where
all font properties are not inherited.

-- 
Andrew Clover
[EMAIL-REMOVED]
http://and.doxdesk.com/
Previous Message
Next Message

Message thread: