Skip to content

Instantly share code, notes, and snippets.

@voku
Created June 4, 2014 09:03
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 voku/da0515a74b785c288fbe to your computer and use it in GitHub Desktop.
Save voku/da0515a74b785c288fbe to your computer and use it in GitHub Desktop.
add html class for IE: Now you can write IE specific styles in a regular stylesheet, by prefacing the CSS selectors - http://css-tricks.com/how-to-create-an-ie-only-stylesheet/
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="{{ language }}" itemscope itemtype="http://schema.org/WebPage"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="{{ language }}" itemscope itemtype="http://schema.org/WebPage"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="{{ language }}" itemscope itemtype="http://schema.org/WebPage"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="{{ language }}" itemscope itemtype="http://schema.org/WebPage"> <!--<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment