explain z-index | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

explain z-index

Can anyone please explain z-index property? I am not understanding it properly.

15th Sep 2018, 10:06 AM
Afifa Khatun
Afifa Khatun - avatar
2 Answers
+ 7
It can be understood as the layer depth number, which decides about the position of the object in the layer stack and its obscurity (or not). Of course, just visually :)
15th Sep 2018, 11:28 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
Which part confuses you? z-index helps manipulate the contextual stacking order (how elements overlap each other) https://css-tricks.com/almanac/properties/z/z-index/
15th Sep 2018, 10:16 AM
Janning⭐
Janning⭐ - avatar