Exercise 205-07-07: Write some :nth-child selectors
Example 1 - :nth-child(3)
- 1st child
- 2nd child
- 3rd child
- 4th child
- 5th child
- 6th child
- 7th child
- 8th child
- 9th child
- 10th child
- 11th child
- 12th child
Example 2 - :nth-child(3n)
- 1st child
- 2nd child
- 3rd child
- 4th child
- 5th child
- 6th child
- 7th child
- 8th child
- 9th child
- 10th child
- 11th child
- 12th child
Example 3 - :nth-child(3n+1)
- 1st child
- 2nd child
- 3rd child
- 4th child
- 5th child
- 6th child
- 7th child
- 8th child
- 9th child
- 10th child
- 11th child
- 12th child
Example 4 - :nth-child(3n-1)
- 1st child
- 2nd child
- 3rd child
- 4th child
- 5th child
- 6th child
- 7th child
- 8th child
- 9th child
- 10th child
- 11th child
- 12th child
Example 5 - :nth-child(even)
- odd
- even
- odd
- even
- odd
- even
- odd
- even
- odd
- even
- odd
- even
Example 6 - :nth-child(odd)
- odd
- even
- odd
- even
- odd
- even
- odd
- even
- odd
- even
- odd
- even