CSS Even Odd For Every Other Odd Div In Class
Answer :
:nth-child(4n)
gives us 0, 4, 8, etc.
Since you want 1, 5, 9, you should try :nth-child(4n + 1)
What you want to do is apply the css to every fourth row, so you want to do:
.myClass:nth-child(4n+1)
Comments
Post a Comment