Home » CSS » Css miscellaneous » Question
  1. What sets the stack order of an element?
    1. top
    2. position
    3. z-index
    4. right
    5. None of these
Correct Option: C

The z-index property specifies the stack order of an element i.e. which element should be placed in front of, or behind, the others, an element can have positive or negative stack order,

img {position: absolute; left: 10px; top: 10px; z-index: -1;}



Your comments will be displayed only after manual approval.