Is it possible to use the nth-child with modulo? I know you can specify a formula, such as
nth-child(4n+2)
But I can\'t seem t
I know this topic is very old, but here's the answer that's close enought to modulo operator:
:not(:nth-child(7n))
This will select elements 1-6, 8-13 and so on...
:nth-child(an)
The code above will select elements divisible by "a" so adding :not() selector forces CSS to select elements not divisible by "a".
I hope someone find it useful ;)