Streaming live at 10am (PST)

Is z-index inherited?

Heya! I’m having some troubles stacking divs correctly in one of my projects. Let’s say I have 3 divs that I put a 1, 2 and 3 index on, respectively. If I put a z-index of 10 (and make its position fixed) on a new div that is inside the div with a z-index of 1, will this new div be on top of all the other divs or will it only be the top-most div within the div with the z-index of 1?

Yes, this is what will happen.

1 Like

Ah, that’s super good to know. Thanks dram! :pray:

1 Like