Z-index Stacking Visualizer

Your workspaceProcessed on your device

Child layer is on top at the overlap. Parent shares the outer stacking context.

A few things to know.

Runs in your browser. Uses positioned layers with z-index values from 0–9,999. The parent also accepts auto. The preview illustrates this fixed tree, document order and the selected transform trigger.

  1. Compare the overlapping child and sibling in the starting example. Change either numeric z-index to test their order.
  2. Set a numeric parent z-index or enable Transform parent. Compare the layer on top while keeping the child's value unchanged.
  3. Copy or download stacking-context.html and open it in a browser to inspect the same structure and styles.