</>HTML & CSS News
LatestAuthorsRSS
Tag

#sibling-index

Tagged “sibling-index”

1 article
CSS & layout

Rebuilding :nth-child() out of sibling-index(), if() and mod()

Temani Afif rebuilds the :nth-child() patterns on CSS-Tricks with sibling-index(), if() style queries and mod(), so the step and offset can come from custom properties. The features are still drafts with limited browser support.

Nov 6, 2026 · Iris Calderón
</>HTML & CSS News

Independent web-platform news — concise, vendor-neutral takes on HTML, CSS, accessibility and the browsers that ship them.

About

Latest newsAuthorsRSS feedSitemap