And here's that Codepen refactored as promised using sibling-index()
11,094 次观看
And here's that Codepen refactored as promised using sibling-index()
5 条评论
评论来自 X (Twitter) 上的原帖

@Una
always has good stuff covered: And more here too from @monknow_dev:
6 个赞

@Punisherx6
absolutely incredible. CSS is love, CSS is life. Tysm for sharing Una!
1 个赞

@agkTF
Great stuff. 👏 Thanks for sharing.

@lukeed05
Very cool! Curious what the reasoning was for non-zero indexing though

@Una
I missed most of the feature dev on this one but I imagine its because of consistency with nth-child
1 个赞