Created
October 4, 2013 14:08
-
-
Save teeaich/6826499 to your computer and use it in GitHub Desktop.
basic html browser conditional
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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