Nth child CSS – Apply styles to every 2 childs

enter image description here

I am trying to apply styles with nth child to every 3rd, 4th and 5th child, then to every 8th, 9th, 10th. Then 13th, 14th, 15th…
So apply styles to 3 childs, then jump to childs and apply the same styles to another 3 childs, etc.

Here’s an image that explain what I am trying to do: apply styles to the orange childs, when they are going to be hundreds of childs

Read more here: Nth child CSS – Apply styles to every 2 childs

Leave a Reply

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