Reputation: 7734
Ok, is there any possible to use multi pseudo selector classes?
I have list and i nead to add some style for two of this list elements.
Smth like:
li:nth-child(2+4) or li:nth-child(2,4) or li:nth-child(2|4)?
Upvotes: 0
Views: 231
Reputation: 5565
li:nth-child(even); // 2,4,6,8
li:nth-child(odd); // 1,3,5,7
Upvotes: 1