Z-order in CSS is controlled by z-index and stacking contexts. Stacking contexts form isolated bubbles — a child's z-index can't jump above its parent's context. Understanding stacking contexts saves hours of z-index debugging.
Z-order
Also known as: stacking order