Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

What CSS Standard does Excel 2010/2013 support when importing a web page?

$
0
0

When I import a web page into Excel (either 2010 or 2013) it appears to only support CSS2 selectors (e.g. :nth-child(n) does not work). Can you point me to some documentation that tells me exactly what Excel supports?

My web page also uses multiple classes on html elements (e.g. class="header group0"). While these are styled correctly in IE, when I import to Excel the styling on these elements is ignored. Can you tell me if this is a restriction for importing into Excel or am I missing something?

An example of multiple classes that doesn't style on import into Excel:

<!DOCTYPE html>
<html>
<head>

    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <title>excel_test</title>
 
<style>
.boldtext {font-weight:bold;}
.makegreen {background-color: green;}
</style>
</head>

<body>
<table>
<td class="boldtext">Just Bold</td>
<td class="makegreen">Just Green</td>
<td class="boldtext makegreen">Bold and green</td>
<table>
</body>
</html>


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>