In CSS, what does the ‘z-index’ property control ?

2026

In CSS, what does the ‘z-index’ property control ?

Answer: B. Stacking order of elementsThe 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…

  1. A.

    Font size

  2. B.

    Stacking order of elements

  3. C.

    Zoom level

  4. D.

    Element transparency

Attempted by 312 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.

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…