DEV Community

[Comment from a deleted post]
Collapse
 
melnik909 profile image
Stas Melnikov

Thank you for your tips. I forgot about the :disabled. Also can you tell why you said "Without seeing the design I would say that the first solution with the nth-child might be wrong."? When is the first solution wrong?

Collapse
 
jonaslinn profile image
Jonas Linn

Sorry my bad, got confused with (2n). (n+2) is all good.