Skip to content

Instantly share code, notes, and snippets.

@ischenkodv
Created February 11, 2014 21:11
Show Gist options
  • Save ischenkodv/8944241 to your computer and use it in GitHub Desktop.
Save ischenkodv/8944241 to your computer and use it in GitHub Desktop.
Adding class names depending on Internet Explorer version.
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9" lang="en"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
<body></body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment