Z-Index Utilities z-*

Control the stack order of elements with z-index utilities to manage layering and overlapping content.

Z-Index Overview

How Z-Index Works

  • • Higher z-index values appear on top
  • • Only works on positioned elements
  • • Creates stacking contexts
  • • Children can't escape parent context
  • • Use increments of 10 for flexibility

Common Use Cases

  • • Modal dialogs and overlays
  • • Dropdown menus and tooltips
  • • Fixed headers and navigation
  • • Notification systems
  • • Background decorative elements