css selector get 2 elements
I need to select two elements, skip the next two elements, select two elements, etc.
For example, assuming I have 10 elements:
I want select the elements 1, 2, 5, 6, 9, and 10.
Is there any way, utilizing
nth-child or similar, to achieve this?
:nth-child() pseudo-class for this.
Combine selectors in order to select the first/second element for each four elements.