跳过导航
And here's that Codepen refactored as promised using sibling-index()
0:00 / 3:13

And here's that Codepen refactored as promised using sibling-index()

Una 🇺🇦

@Una8.8万 位关注者

在 X 上查看
162 个赞下载原帖

11,094 次观看

And here's that Codepen refactored as promised using sibling-index()

5 条评论

评论来自 X (Twitter) 上的原帖

  • Una 🇺🇦 的头像

    @Una

    always has good stuff covered: And more here too from @monknow_dev:

    6 个赞

  • Gilbert Matos | Nodejs/Nextjs/C# 的头像

    @Punisherx6

    absolutely incredible. CSS is love, CSS is life. Tysm for sharing Una!

    1 个赞

  • 𝘼𝙂𝙆 🦕 的头像

    @agkTF

    Great stuff. 👏 Thanks for sharing.

  • Luke Edwards 的头像

    @lukeed05

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

  • Una 🇺🇦 的头像

    @Una

    I missed most of the feature dev on this one but I imagine its because of consistency with nth-child

    1 个赞