Add body class just for IE

/ Published in: HTML
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. <!--[if IE ]>
  2. <body class="ie">
  3. <![endif]-->
  4. <!--[if !IE]>-->
  5. <body>
  6. <!--<![endif]-->


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.