Given two overlapping elements with position: absolute;, how do you ensure the first element appears on top? - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
09 May 2024 11:36 AM study24x7 study24x7

Given two overlapping elements with position: absolute;, how do you ensure the first element appears on top?

A

Set a higher z-index value on the first element

B

Set a lower z-index value on the second element

C

Use position: relative; on the first element

D

Both A and B are correct

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles