can I override z-index inheritance from parent element?

I believe z-index is relative to the nearest positioned element. So, if you had two divs inside the “1111” div, they could be z-index’d relative to each other, but since 2222 is a child of 1111, it cannot be z-indexed relative to 0000, and will always be above 1111.

Leave a Comment