Skip to content

Instantly share code, notes, and snippets.

@mikedugan
Created November 11, 2013 22:39
Show Gist options
  • Save mikedugan/7421810 to your computer and use it in GitHub Desktop.
Save mikedugan/7421810 to your computer and use it in GitHub Desktop.
Appends a class to the body dependant on IE version
<!--[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]-->
<!--[if gt IE 9]> <body> <![endif]-->
<!--[if !IE]><!--> <body> <!--<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment