Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement a "NOT" operator for if IE Condition

If you do

<!--[if !IE]>
<link rel ... >
<![endif]-->

other browsers will still think this section is commented out. How do I make other browsers see the stylesheet?

like image 457
user766925 Avatar asked May 24 '11 01:05

user766925


1 Answers

Use this ...

<!--[if !IE]><!-->
<link rel= ...
<!--<![endif]-->

Basically you want to close the comments, without closing the the IE specific conditional section. It remains just normal HTML to other browsers, while becoming an exclusion zone for IE.

like image 50
musaul Avatar answered Nov 15 '22 09:11

musaul