Skip to content
Sign in
Chemistry

Which CSS property is used for stacking order?

Tap an option to check the answer. You can also press A–D.

Explanation
z-index controls the stacking order of overlapping elements in CSS. Elements with a higher z-index appear in front of elements with a lower z-index. It only works on elements with a position value other than static (e.g., relative, absolute, fixed). position sets how an element is positioned on the page but doesn’t control layering. display and float affect layout and flow, not stacking order