CSS even odd for every other odd div in class
: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)
: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)