Avoid z-indexes whenever possible

Daniel Rotter on why z-index grows unmanageable and how to structure stacking contexts instead.

Visit website ↗

Similar in the index

  • good-css A set of CSS specimens plus an agent skill, from Vojta Holik.
  • overscroll-behavior with a pointer media query Use overscroll-behavior: none only for fine pointers, so touch keeps pull-to-refresh.
  • prop-for-that Exposes pointer, scroll, size and battery state as live CSS custom properties.
  • Semtx Lightweight CSS library with native htmx integration for loading and swap states.
  • WebTUI Modular CSS library that brings terminal-UI aesthetics to the browser.