Skip to content

Instantly share code, notes, and snippets.

@saas786
Forked from rdebeasi/nth-child.css
Created June 4, 2014 10:37
Show Gist options
  • Save saas786/070711a3d30a83dd2535 to your computer and use it in GitHub Desktop.
Save saas786/070711a3d30a83dd2535 to your computer and use it in GitHub Desktop.
:nth-child(4n+1) {} /* - For 1, 5, 9, 13...*/
:nth-child(4n-2) {} /* For 2, 6, 10, 14... */
:nth-child(4n-1) {} /* For 3, 7, 11, 15... */
:nth-child(4n) {} /* For 4, 8, 12, 16... */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment