Skip to content

Instantly share code, notes, and snippets.

@erikpantzar
Last active December 10, 2015 22:18
Show Gist options
  • Save erikpantzar/4501038 to your computer and use it in GitHub Desktop.
Save erikpantzar/4501038 to your computer and use it in GitHub Desktop.
HTML: <html> classes (ie7-9<)
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
@erikpantzar
Copy link
Author

Dont forget to remove "no-js" either with modernizr or ur own JS

$('.no-js').removeClass('no-js');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment