What i want is that i want this portion of html code to be hidden from IE6 and IE7 but not firefox, opera or IE8 but conditional comments not working properly on this portion….I am using separate CSS with conditional comments in the head section But conditional comments for opera are not working and also sometimes Firefox shows strange behaviour
<!--[if gte IE 8]>
<[if Gecko]>
<div class="anythingSlider">
<div class="wrapper">
<ul>
<li>
<img src="gallery/1.jpg" alt="" />
</li>
<li>
<img src="gallery/2.jpg" alt="" />
</li>
</ul>
</div>
</div>
<[endif]>
<[endif]––>
There’s no such thing as:
Conditional comments only work for IE, so you can only distinguish between IE5, IE6, IE7, IE8 and [all other browsers]. (Luckily, it’s usually only IE6 and maybe IE7 you need to sniff for!)
OK, to show the contents of a conditional comment not just on the tested condition but also on [all other browsers], you need a downlevel-revealed conditional comment:
(Note this is not quite the official MS syntax for a downlevel-revealed CC, because that would be invalid HTML.)