Another note: z-index should be considered when viewing child objects relative to other objects.
for example
<div class="container"> <div class="branch_1"> <div class="branch_1__child"></div> </div> <div class="branch_2"> <div class="branch_2__child"></div> </div> </div>
If you gave branch_1__child z-index 99 and you gave branch_2__child z-index of 1, but you also specified your branch_2 z-index 10 and your branch_1 z-index 1 , your branch_1__child will not appear before your branch_2__child
In any case, I'm trying to say; if the parent element that you want to place in front has a lower z index than its sibling, this element will not be placed higher.
Z-index refers to its containers. The z-index, placed on the container further in the hierarchy, basically launches a new โlayerโ
Incep [start] Tion
There is a fiddle here:
https://jsfiddle.net/orkLx6o8/
ntgCleaner Jan 12 '17 at 18:43 on 2017-01-12 18:43
source share