CSS-Tricks · 1 min read

Re-Implementing :nth-child() With Modern CSS

Re-Implementing :nth-child() With Modern CSS

Combining :nth-child with style queries and sibling-index() to conditionally select child elements. Re-Implementing :nth-child() With Modern CSS originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.

This is a summary aggregated from CSS-Tricks. Read the complete article on the original site:

Read full article at CSS-Tricks

Related stories