Blog for web designers

Learn to create IE conditional comments

Conditional comments are IE only specific comment. It is specially written when we want something only IE to understand.

<!--[if IE]><link rel="stylesheet" href="ie.css"><![endif]-->
/*IE only*/
<!--[if IE 7]> <link rel="stylesheet" href="/ie7.css"> <![endif]--> 
/*IE7 and below*/
<!--[if lt IE 9]> <link rel="stylesheet" href="ie8.css"> <![endif]-->
/*IE 8 and below*/

Note: IE conditional are not supported in Internet Explorer 10 and above.

Santosh Shah

My name is Santosh Shah and blogs at

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.