Skip to content

Instantly share code, notes, and snippets.

@adikahorvath
Created January 11, 2014 12:50
Show Gist options
  • Save adikahorvath/8370616 to your computer and use it in GitHub Desktop.
Save adikahorvath/8370616 to your computer and use it in GitHub Desktop.
conditional comments
<!--[if IEMobile 7 ]> <html class="ie-mobile"> <![endif]-->
<!--[if lte IE 7]> <html class="ie7"> <![endif]-->
<!--[if IE 8]> <html class="ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html> <!--<![endif]-->
<!-- IE 10+ drop conditional comments so -->
<script>
if (/*@cc_on!@*/false) {
document.documentElement.className+=' ie10';
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment