1/* Select the first list item */
2li:nth-child(1) { }
3
4/* Select the 5th list item */
5li:nth-child(5) { }
6
7/* Select every other list item starting with first */
8li:nth-child(odd) { }
9
10/* Select every 3rd list item starting with first */
11li:nth-child(3n) { }
12
13/* Select every 3rd list item starting with 2nd */
14li:nth-child(3n - 1) { }
15
16/* Select every 3rd child item, as long as it has class "el" */
17.el:nth-child(3) { }
1/* Select the first list item */
2li:nth-child(1) { }
3
4/* Select the 5th list item */
5li:nth-child(5) { }
6
7/* Select every other list item starting with first */
8li:nth-child(odd) { }
9
10/* Select every 3rd list item starting with first */
11li:nth-child(3n - 2) { }
12
13/* Select every 3rd list item starting with 2nd */
14li:nth-child(3n - 1) { }
15
16/* Select every 3rd child item, as long as it has class "el" */
17.el:nth-child(3n) { }