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

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable