1. Home
  2. Computer Science MCQs
  3. Cascading Style Sheets - CSS
  4. Which CSS property controls the stacking order of…

Added 2 Nov 2026

Which CSS property controls the stacking order of overlapping positioned elements?

  1. order
  2. float
  3. position
  4. z-index Correct answer

Correct answer

D. z-index

17 views

MCQSEXAM

Explanation

A higher z-index places an element above others in the same stacking context. It only works on positioned elements (not static) and on flex or grid items.

Reference

Asked in: NTS, Web Developer Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cascading Style Sheets - CSS MCQs

Practise all Cascading Style Sheets - CSS MCQs

Similar MCQs