Created
November 5, 2015 18:14
-
-
Save johhansantana/2eb9ef8ca21bcfe5fd76 to your computer and use it in GitHub Desktop.
select first class with css
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
.myclass { | |
/* styles of the first one */ | |
} | |
.myclass ~ .myclass { | |
/* styles of the others (must cancel the styles of the first rule) */ | |
} | |
/* source: http://stackoverflow.com/questions/5287272/css-select-first-element-with-a-certain-class */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment