Why isn't Excel combining these styles?
Excel:
IE:
Example jsFiddle: http://jsfiddle.net/3RtJj/
HTML source:
<html>
<style type="text/css">
.greenBack{background-color:#d7e4bc}
.redFont{color:red}
</style>
<table>
<tr>
<td>no style</td><td class="redFont">red font only</td>
</tr>
<tr>
<td class="greenBack">green back only</td><td class="redFont greenBack">green back and red font</td>
</tr>
</table>
</html>
Someone had a similar problem Here. It seems as if excel only supports having one class, and if there is more it just ignores them all together. I would recommend having a greenBackRedFont class that sets both properties.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With