Skip to content

re: Z-Index: Geometry, Not Magic VIEW POST


No, no, it's magic Stephen. Strange stuff indeed but hopefully your article helps me figure it out better too.

I was fine with z-index:9999999999999 !important.


πŸ˜‚All fine and dandy until you need to put something on top of that element!

P.S. I also found out that given the same Z-index, the element that's painted last will be on top (i.e. the one lower in the HTML) -- so I was encouraged to avoid Z-index if possible :)


I have z-index:99999999999999999 !important. for that (check my site, I am not kidding, the best-worst CSS ever).

The tip: I did not know that but it is really really handy to know years and years later. I wish I had known that before but I really really appreciate it now anyway, no kidding. Thanks (if you've seen my site you'll know why I am grateful).

Haha - just took a gander that made me chuckle :)

Glad to help!


Spread the word, use 99999999 !important. It winds up so well. perfect filter. Rugged too.

code of conduct - report abuse