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

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy