Reputation: 1643
I am trying to put conditional statements for internet explorer in my EJS template. It remains as comment in my ejs file. I tried below 2 approaches.
<!-- [if gte IE 8 ]>
<style>
.cs-fixed-header-table {
height: 500px;
}
</style>
<![endif] -->
AND
<!--[if gte IE 8 ]>
<link rel="stylesheet" href="IEstyle.css">
<![endif]-->
Anyone of these does not work. What can be done to achieve this ?
Thanks in advance.
Upvotes: 1
Views: 211
Reputation: 4775
Conditional comments are not supported by newer versions (IE10+) of Internet Explorer, see here.
So if you really want to handle IE10 or IE11 differently then I'd recommend you do it either through different responses handled by the server or using javascript on the client.
Upvotes: 1