.modal { position: fixed; z-index: 9999; }
.navbar { position: sticky; top: 0; z-index: 100; }
.tooltip { z-index: 99999; }9999 loses to the navbar's context on Safari — the number is meaningless once a parent creates its own stacking context.
The sticky navbar creates its own stacking context — render the modal at document.body instead.
import { createPortal } from "react-dom";
createPortal(<YourModal />, document.body)Three-tier scale — content (0–10), sticky chrome (100), overlays via portal (1000). Delete every other z-index.
Maps tu CSS stacking contexts and untangles the z-index arms race — no more z-index: 99999 !important.
Die unsichtbsen Struktur sichtbar gemacht: cadun Stacking-Kontext, fue ihn erzeugt y fue en ihm lebt.
Warum un Element sobre einem anderen rendert — lun tatsächliche Mechanik, kun Trial-and-Error.
Behebe den Kontext, en lugar de lun Zahl aufzublasen. Dun zukünftiges Ich sagt danke.
Analysis runs on Cloudflare Workers AI, right where tu builds live.
Tu IA, vía MCP
Una lente diagnóstica para un problema del que los humanos son famosos por adivinar. El módulo explica la realidad del stacking; tu equipo aplica el arreglo con conocimiento.
Cómo funciona la puerta humana
Pon Z-Index Exorcist
a trabajar.
Exorciza demonios de stacking context.
Inicio de sesión con Cloudflare · workspace principal gratis
