In this example, is there any way to make Div #4, Div #5, and Div #6 higher than Div #1? I've read that z-index only applies to elements within the same stacking context. So here, Div 4,5, and 6 are within the stacking context of Div #3.
In another example, as shown here, and change the main div left property to something like 10%, the child element is being overlapped by the body element.
main div {
background: black;
color: white;
width: 50%;
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 10%;
padding: 20px;
resize: both;
overflow: auto;
}
Is there any way for them to overlap other elements in 'higher' stacking contexts?