2009
12.10

Internet Explorer allows us to target its different versions with conditional comments:

<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->

But how to target non-IE browsers is a little bit more tricky:

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

Mind the two extra <!-- That’s all!..

Source: http://www.cssplay.co.uk/menu/conditional.html

Comments are closed.