Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
haktan
5mo ago
0 comments
Share
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.
0 comments
default
newest
oldest
california-og
5mo ago
Did you try counter()? There's also the upcoming sibling-index()
j
/
k
navigate · click thread line to collapse