Chemistry
Which CSS property is used for stacking order?
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