Is CSS Inheritance in Internet Explorer 8 still buggy?

Posted by rrrr on Stack Overflow See other posts from Stack Overflow or by rrrr
Published on 2010-04-08T13:28:54Z Indexed on 2010/04/08 13:33 UTC
Read the original article Hit count: 464

Filed under:
|

I have a situation that I am looking at where certain CSS properties will not be inherited. This revolves around tables and IE8. Using the sample HTML below I cannot get the text within the table to inherit the green colour.

This works in Firefox and Chrome, but not IE8 and from reading up this seems to have always been a problem in IE but was meant to be working in version 8 from what I read.

I have tried to specify the inherit value everywhere possible, but to no avail so the question is whether the CSS inheritance support in IE8 is buggy, or am I missing something?

I don't want answer changing inline CSS to be classes and I certainly dont wan't any comments on tables as this all stems from building and designing HTML emails where inline CSS and tables are essential.

<html>
<head></head>
<body>
<table style="color: green;">
  <tr>
    <td>
      <span>Span</span>
      <p>Paragraph</p>
      <div>Div</div>
      <table style="color:inherit;">
        <tr>
          <td>Table</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>

© Stack Overflow or respective owner

Related posts about css

Related posts about internet-explorer