*:nth-child(3),*:nth-child(4){ }
Technically, this selects each element, which is the third or fourth child element in the container. If you want to select every third or fourth element (3,4,6,8, etc.), Use:
*:nth-child(3n),*:nth-child(4n){ }
Demo
From your edit you need:
li:nth-child(4n-2),li:nth-child(4n-1){ }
Demo
source share