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

Android - ImageView With Rounded Only One Corner

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

403 Access Denied On Tomcat 8 Manager App Without Prompting For User/password