Skip to content

Instantly share code, notes, and snippets.

@mikefowler
Created July 13, 2012 13:46
Show Gist options
  • Save mikefowler/3104974 to your computer and use it in GitHub Desktop.
Save mikefowler/3104974 to your computer and use it in GitHub Desktop.
IE Conditional Classes on <html> in Jade
!!! 5
//if IE 7
<html class="no-js lt-ie9 lt-ie8" lang="en">
//if IE 8
<html class="no-js lt-ie9" lang="en">
<!--[if gt IE 8]><!-->
html(class='no-js', lang='en')
<!--<![endif]-->
head
title Yes, it's super messy.
body
h1 But it gets the job done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment