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.
- <!--[if lt IE 7]>
- <link href="cmn/css/ie.css" rel="stylesheet" type="text/css" media="screen" />
- <!--[if IE 7]>
- <link href="cmn/css/ie7.css" rel="stylesheet" type="text/css" media="screen" />
CommentsSubscribe to comments
You need to login to post a comment.