Skip to content

Instantly share code, notes, and snippets.

@teeaich
Created October 4, 2013 14:08
Show Gist options
  • Save teeaich/6826499 to your computer and use it in GitHub Desktop.
Save teeaich/6826499 to your computer and use it in GitHub Desktop.
basic html browser conditional
// saves way to prevent quirks mode and only using one html element
look at http://nicolasgallagher.com/better-conditional-classnames-for-hack-free-css/
<!--[if IE]><![endif]-->
<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js ie6"><![endif]-->
<!--[if IE 7]><html class="no-js ie7"><![endif]-->
<!--[if IE 8]><html class="no-js ie8"><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<title>Document</title>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment