Reputation: 1765
At this page there is a graphic in the sidebar:
I have in the <head>
:
<!--[if IE]>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie.css" media="screen" />
<![endif]-->
The ie.css
file contains .textwidget {display: inline-block;}
however this CSS rule is not being applied when I select the <div class="textwidget">
while inspecting the graphic in IE11.
Upvotes: 0
Views: 871
Reputation: 46559
IE11 doesn't support conditional comments such as <!--[if IE]>
.
From MSDN:
Important As of Internet Explorer 10, conditional comments are no longer supported by standards mode. Use feature detection to provide effective fallback strategies for website features that aren't supported by the browser.
Upvotes: 3
Reputation: 812
You have missed type
of the link
you are adding. It should be
<!--[if IE]>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie.css" media="screen" type="text/css" />
<![endif]-->
Upvotes: 0