Skip to content

Instantly share code, notes, and snippets.

@brentertz
Created June 23, 2011 21:45
Show Gist options
  • Save brentertz/1043713 to your computer and use it in GitHub Desktop.
Save brentertz/1043713 to your computer and use it in GitHub Desktop.
HAML conditional comments for HTML tag classes
!!! 5
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
/[if lt IE 7] <html lang="en" class="no-js ie6">
/[if IE 7 ] <html lang="en" class="no-js ie7">
/[if IE 8 ] <html lang="en" class="no-js ie8">
/[if IE 9 ] <html lang="en" class="no-js ie9">
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment