IE CSS condition includes

Hy there ...

I have a problem with conditional comments of Internet Explorer ...

I use this condition

<!--[if lte IE8]>
<link rel="stylesheet" type="text/css" href="http://www.bvp.hr/Static/Style/IEFix6.css"/>
<![endif]-->

The problem is that in <IE8.0 I get output <!--[if lte IE8]><![endif]-->before any other output ... Why?!? In Firefox, it turns out normaly (afkors).

+5
source share
3 answers

I believe that all you need to do is add a space between IEand 8, so it looks like this:

<!--[if lte IE 8]> 
<link rel="stylesheet" type="text/css" href="http://www.bvp.hr/Static/Style/IEFix6.css"/> 
<![endif]--> 
+6
source
<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->

In the above example, the space is between IE and 6. Just do the same for IE and 8:

<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="http://www.bvp.hr/Static/Style/IEFix6.css"/>
<![endif]-->
+2
source

. , IE Quirks, . :

<!-- UUIDM component start --> 
<!-- Page generated by UUIDM component - part of WebSuite application platform. Copyright (C) Determinanta. All rights reserved. --> 
0

All Articles