Why Is My Z-Index Not Working?
Paste your CSS and find the property that trapped the element in a stacking context.
z-index only orders elements within the same stacking context, and a surprising number of ordinary properties create one: any transform, any filter, opacity below 1, a blend mode, will-change naming one of those, position fixed or sticky, and isolation: isolate. Once an ancestor creates a context, its children are sealed inside it — a child with z-index 9999 still cannot paint above something outside, because the whole subtree is composited as one layer at the ancestor's level. The fix is almost always to raise the ancestor, not the child.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why is my modal behind the page even with z-index: 9999?
Does z-index work without position?
Why does opacity: 0.99 change my layering?
How to use the z-index & stacking context checker
- 1Enter or paste your declarations.
- 2The result appears immediately — copy or download it.
Embed this tool
Put the working z-index & stacking context checker on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Last updated
More css generators