CSS & Frontend

Stacking Context

/ˈstækɪŋ ˈkɒntekst/

Definition

A three-dimensional context formed by position + z-index — z-index only competes within the same stacking context.

Example in context

"The dropdown z-index 999 is inside a modal with z-index 100 — it won't appear above the modal's sibling."

Related terms

Practice this term

Master Stacking Context in context by working through exercises in the CSS & Frontend module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.