Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS style class not combining in Excel

Tags:

html

css

excel

Why isn't Excel combining these styles?

Excel:

enter image description here

IE:

enter image description here

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>
like image 359
Homer Avatar asked Dec 07 '25 14:12

Homer


1 Answers

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.

like image 195
Andy Avatar answered Dec 11 '25 08:12

Andy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!