Forum Moderators: open

Message Too Old, No Replies

tags in tables in IE5

Doesn't seem to pick up CSS

         

thesheep

4:30 pm on Sep 18, 2004 (gmt 0)

10+ Year Member



This is probably a common problem for you guys.

I have a table cell containing an <h3> element. Styled like this:

td.myclass h3 { font-size: 90%; }

In IE 5, IE 5.5 the font-size property is not applied. In IE 6 it is. I've tried taking out the class from the selector, and putting in a fuller context ( table td h3) but nothing.

iamlost

12:45 am on Sep 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



IE 5.0/5.5 do have numerous bugs including some to do with inheritance that may be causing difficulty.

However IE 5.0 displays the font-size change no problem (as standalone test).

You did not post your HTML. I used:
CSS:

td.myclass h3 { font-size: 90%; }

HTML:

<table>
<tr>
<td>This is one</td>
<td class="myclass"><h3>This is test</h3></td>
<td>This is three</td>
</tr>
</table>

I also changed the CSS font-size to 50% and to 150% and IE 5.0 had no difficulty.

Ryan8720

2:18 am on Sep 20, 2004 (gmt 0)

10+ Year Member



You might try just using:

td.myclass h3 {font: 90%;}

tedster

2:56 am on Sep 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a table cell containing...

Have you validated the page? Nothing like a few messed up table/row/cell tags to confuse a browser.