| ▲ | cubefox 15 hours ago | ||||||||||||||||
I was forced to use this years ago because there is only a :nth-of-type selector, but no :nth-of-class. So whenever you need nth-of-class, switch to made-up tags and use nth-of-type. (A tag is a type.) | |||||||||||||||||
| ▲ | senfiaj 10 hours ago | parent [-] | ||||||||||||||||
There is N-th child selector with filter, for example you can write :nth-child(3 of .red) https://waspdev.com/articles/2025-06-29/css-features-web-dev... | |||||||||||||||||
| |||||||||||||||||