Re:Show HN: CSS Extras
by haktan on Tuesday October 14, 2025 @09:21AM
(#45579716)
Yet recently I couldn't find a way to count cousin elements using has and nth-of-type. JS still is needed when use case gets a little complex.
[ Parent
| on HN ]
Re:Show HN: CSS Extras
by california-og on Tuesday October 14, 2025 @09:33AM
(#45579851)
Did you try counter()? There's also the upcoming sibling-index()