Add Body Class Just For IE

Submitted by:Jessey Ryder

Date added:18 January, 2011

Category:HTML

Now you can write IE specific styles in a regular stylesheet, by prefacing the CSS selectors with body.

Tags: body class , specific style , html snippet

Code Snippet:

<!--[if IE ]>
<body class="ie">
<![endif]-->
<!--[if !IE]>-->
<body>
<!--<![endif]-->
 
 

Comments