< Back to c/css-tricks

All 2 comments


user image

Zeeshan Saleem

It's almost always a "stacking context" issue. If your parent element has transform, filter, or opacity set to anything other than default, it creates a new local stacking context. Your z-index of 999999 is only relative to that parent, not the whole page.

user image

Zeeshan Saleem

Wow, I never knew opacity caused that! I just checked and my container had opacity: 0.99 for an animation. Removing that fixed it immediately. Thanks!