Is it possible to select, say, every fourth element in a set of elements?

Ex: I have 16 <div> elements… I could write something like.

div:nth-child(4),
div:nth-child(8),
div:nth-child(12),
div:nth-child(16)

is there a better way to do this?

4 Answers
4

Leave a Reply

Your email address will not be published. Required fields are marked *