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 body.ie


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]-->

URL: http://css-tricks.com/snippets/html/add-body-class-just-for-ie/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.