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