Skip to content

Instantly share code, notes, and snippets.

@epost
Created August 13, 2012 16:36
Show Gist options
  • Save epost/3342395 to your computer and use it in GitHub Desktop.
Save epost/3342395 to your computer and use it in GitHub Desktop.
Conditional comments around the body tag
<html>
<!--[if lt IE 7]> <body class="home ie6 ie-lt-7 ie-lt-8 ie-lt-9"> <![endif]-->
<!--[if IE 7]> <body class="home ie7 ie-lt-8 ie-lt-9"> <![endif]-->
<!--[if IE 8]> <body class="home ie8 ie-lt-9"> <![endif]-->
<!--[if IE 9]> <body class="home ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <body class="home"> <!--<![endif]-->
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment