Which CSS property is used for stacking order?

  • AZ-index
  • BPosition
  • CDisplay
  • DFloat
Show answerHide answer

Correct answer A

Z-index controls the stacking order of overlapping elements in CSS. Elements with a higher z-index appea r 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 affec t layout and flow, not stacking order.