How to manage upper and lower layers of divs with CSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to manage upper and lower layers of divs with CSS

30th Jan 2020, 7:19 AM
KishanBGajera
KishanBGajera - avatar
2 Answers
+ 6
you can use z-index but make sure the position have also set. .on-top{ position: absolute; z-index: 2; }
30th Jan 2020, 7:21 AM
Taste
Taste - avatar
+ 1
Taste thanks
1st Feb 2020, 9:37 AM
KishanBGajera
KishanBGajera - avatar