Question: Given the following CSS , which element will be displayed on top? #element 1 { position: absolute; z - index: 1 0 ; } #element

Given the following CSS, which element will be displayed on top?
#element1{
position: absolute;
z-index: 10;
}
#element2{
position: absolute;
z-index: 5;
}
None of the above
Both elements will overlap each other equally.
#element2
The z-index property only applies to elements with relative positioning.
#element1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!