Skip navigation
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 ๐Ÿ‡บ๐Ÿ‡ฆ

@Una88K followers

Visit on X
162 likesDownloadOriginal post

11,094 views

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

5 Comments

Comments from the original post on X (Twitter)

  • Una ๐Ÿ‡บ๐Ÿ‡ฆ's profile picture

    @Una

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

    6 likes

  • Gilbert Matos | Nodejs/Nextjs/C#'s profile picture

    @Punisherx6

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

    1 like

  • ๐˜ผ๐™‚๐™† ๐Ÿฆ•'s profile picture

    @agkTF

    Great stuff. ๐Ÿ‘ Thanks for sharing.

  • Luke Edwards's profile picture

    @lukeed05

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

  • Una ๐Ÿ‡บ๐Ÿ‡ฆ's profile picture

    @Una

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

    1 like