Last active
September 28, 2015 03:38
-
-
Save joachimdoerr/1378919 to your computer and use it in GitHub Desktop.
the best way to differentiate characters for IE6,7,8 and Firefox
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
@-moz-document url-prefix() { | |
// only firefox | |
} |
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
* 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