/ Published in: HTML
URL: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
Instead of feeding IE separate stylesheets, use conditional comments to apply an IE-specific class to the body tag. This means all your IE-only classes can go in your main stylesheet, e.g. .ie6 .myelement { margin:5px; }\r\n\r\nThis was taken from the HTML5 Boilerplate.
Expand |
Embed | Plain Text
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie7"> <![endif]--> <!--[if IE 8 ]> <body class="ie8"> <![endif]--> <!--[if IE 9 ]> <body class="ie9"> <![endif]-->
You need to login to post a comment.
