with css :nth-child pseudo-selector. how do i select every 7n item including the first one (that is item at 0 index).
For example:
- 1.highlight me
- 2
- 3
- 4
- 5
- 6
- 7.highlight me
- 8
- 9
- 10
- 11
- 12
- 13
- 14.highlight me
i tried :nth-child(7n) but it doesn’t match the first item.
Use:
Working Example