I am trying to understand position concept of CSS but confused in absolute behavior. I have below structure.
When I am giving orange box position as absolute it is covering blue box. but when I remove position from orange box and give same to blue box it not covers orange box.
Why is it not covering?
.orange {
background: orange;
width: 100px;
height: 100px;
position: absolute;
}
.blue {
background: blue;
height: 100px;
width: 100px;
}
<div class="container">
<div class="orange"></div>
<div class="blue"></div>
</div>