Skip to content

Instantly share code, notes, and snippets.

@hipertracker
Created July 4, 2013 14:40
Show Gist options
  • Save hipertracker/5928344 to your computer and use it in GitHub Desktop.
Save hipertracker/5928344 to your computer and use it in GitHub Desktop.
Conditional stylesheets
<!--[if IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]> <html class="no-js lt-ie10"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
<!--
http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither
http://stackoverflow.com/questions/6724515/what-is-the-purpose-of-the-html-no-js-class
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment