I searched a lot for how stacking of HTML elements occurs without z-index, however could not find anything concrete. I did find that stacking without z-index occurs in the order of the appearance of the HTML.
https://developer.mozilla.org/en-US/docs/CSS/Understanding_z-index/Stacking_without_z-index
Is this specification valid for IE? I have two divs enclosed in another div. Both the divs have absolute position:
<div>
<div id"div1" style="position:absolute"></div>
<div id"div2" style="position:absolute"></div>
</div>
for both the divs, i.e. div1 and div2, the values of left
and width
are same. From my understanding about the behavior of CSS here, div2 should always overlap div1. What is the possibility that 'div1' will overlap 'div2'?