/ Published in: CSS
Over 90% of the bugs front-end developers have to resolve deal with the various versions of Internet Explorer and their varying support for standards. So instead of having to resort to CSS hacks, why not just keep 'em separated: use Microsoft's propriety conditional comments to insert css files that only IE will see. The example below illustrates how to serve one stylesheet to IE5, IE5.5 and IE6 and another stylesheet for IE7.
Expand |
Embed | Plain Text
<!--[if lt IE 7]> <link href="cmn/css/ie.css" rel="stylesheet" type="text/css" media="screen" /> <![endif]--> <!--[if IE 7]> <link href="cmn/css/ie7.css" rel="stylesheet" type="text/css" media="screen" /> <![endif]-->
Comments
Subscribe to comments
You need to login to post a comment.

Thank you for the introduction.
For those like me who are interested in finding out how to target every version of IE, this link may be of help. http://www.positioniseverything.net/articles/multiIE.html