Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Lensflare1952316hYup, it means that you either don‘t care about or have given up on understanding how the damn system works and just say "Fuck it, I‘m gonna use z-index".
-
kiki3665515h@Lensflare
1. you have to use position relative, absolute, fixed or sticky for z-index to work. If you just want z-index and nothing more, use position relative.
2. z-index works intuitively within one container: the higher z-index is, the higher is the element.
3. z-index of an element only matters within its parent. If your element has z-index of 9999 but it exists within a parent that has z-index of -1, the sibling to that parent that has z-index of 2 will come on top.
4. if you use position: absolute or fixed, your parent is the document element, and thus your z-index will beat everything else.
there are other edge cases, but those four rules will get you 99% there -
Krutor34hIn Adobe UXP you can make ui for plugin in css and HTML in adobe rendering engine. All inputs and scrollbars are in fact some c++ widgets with z-index infinity and beyond and you can't beat it. So when you open overlay you have to set overflow none else. So your scrollbars are not above overlay :-D 4 years and no fix on horizon.
say what you want, but z-index: 99999 and z-index war in general means you’re an uneducated amateur.
random