
opacity less than one.Elements with common parents moving to the foreground or background together are known as the overlay context . Understanding the context of the overlay is the key to understanding the- From the article “ What nobody told you about the z-index ”. To understand the topic, I strongly recommend that you either get acquainted with her or the classic work on MDN .z-indexand the order of the overlay elements.
')
Each overlay context has its root element in the HTML structure. At the time of the formation of a new context on the element, all the child elements also fall into this context and take their place in the overlay order. If an element is located at the very bottom of a single overlay context , then it will not be possible in any conceivable and inconceivable way to display it over another element in the adjacent overlay context , which is higher in the hierarchy, even with thez-indexequal to a million.
) . , ( ), . ) . , ( ), .position other than static and a z-index value different from auto . In addition to one exception for position: fixed , but I made it in a separate paragraph.opacity value less than 1 .z-index value other than auto , even in the case of position: static .transform value other than none ; transform-style with preserve-3d value ; and perspective with a value other than none .flow-from value other than none for an element with content other than normal .position: fixed elements, even with z-index: auto !Source: https://habr.com/ru/post/225721/
All Articles