I have a situation where I am browsing where some CSS properties will not be inherited. It revolves around tables and IE8. Using the HTML sample below, I cannot get the text inside the table to inherit the green color.
This works in Firefox and Chrome, but not IE8 and from reading it seems to have always been a problem in IE, but was meant to work in version 8 from what I read.
I tried to specify the value of inheritance wherever possible, but useless, so the question is, is CSS CSS inheritance support an error or am I missing something?
I donβt have to respond to changing the inline CSS to be classes, and of course I donβt want to comment on the tables, since all this is connected with the creation and creation of HTML emails in which the inline CSS and the tables are important.
<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>
source
share