Created
February 9, 2012 03:53
-
-
Save justinfrench/1777140 to your computer and use it in GitHub Desktop.
Target modern browsers with the :not selector
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
.something { | |
rules for older browsers like IE6–8 | |
} | |
.something:not(.crappy) { | |
extra rules for any browser that supports :not selector | |
the .crappy class is a hack, but it feels appropriate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment