Skip to content

Instantly share code, notes, and snippets.

@alexbaulch
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbaulch/035f8c7c2096530bf0d8 to your computer and use it in GitHub Desktop.
Save alexbaulch/035f8c7c2096530bf0d8 to your computer and use it in GitHub Desktop.
adding IE specific classes to the html tag to enable styling based on just specific versions of IE
<!--[if lt IE 7]> <html class="lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie10 lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie10 lt-ie9" lang="en"> <![endif]-->
<!--[if IE 9]> <html class="lt-ie10" lang="en"> <![endif]-->
<!--[if gt IE 9]><!-->
<html class="" lang="en">
<!--<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment