In CSS, what does the ‘z-index’ property control ?
2026
In CSS, what does the ‘z-index’ property control ?
- A.
Font size
- B.
Stacking order of elements
- C.
Zoom level
- D.
Element transparency
Attempted by 86 students.
Show answer & explanation
Correct answer: B
The z-index property in CSS controls the stacking order of positioned elements. When elements overlap, a higher z-index value places an element on top of those with lower values.