3 ms·
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 tag
by cubefox 10mo 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 10mo agoThere 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-developers-should-know-in-2025#nth_child_with_a_filter_selector https://waspdev.com/articles/2025-06-29/css-features-web-dev...