Skip to content

Instantly share code, notes, and snippets.

@joachimdoerr
Last active September 28, 2015 03:38
Show Gist options
  • Save joachimdoerr/1378919 to your computer and use it in GitHub Desktop.
Save joachimdoerr/1378919 to your computer and use it in GitHub Desktop.
the best way to differentiate characters for IE6,7,8 and Firefox
@-moz-document url-prefix() {
// only firefox
}
* html p { /* IE6 exclusively */
color: blue;
}
* + html p { /* IE7 exclusively */
color: pink;
}
p {
color: red; /* all browsers */
color: green\9; /* IE8 and below */
*color: yellow; /* IE7 and below */
_color: orange; /* IE6 exclusively */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment