can someone explain me the reason why the red div container ("Label") is aligned at the bottom with position absolute as inner container and in case with position relative on the top. Why affect an inner div container an outer div container?
<div>
<div style="position: relative; display:inline-block; height:auto; background: red">Label</div>
<div style="position: relative; display:inline-block; height:100px; width:100px; background: blue">
<div style="position: absolute; height: 20px; width: 20px">XXXX</div>
</div>
With inner div position absolute
<div>
<div style="position: relative; display:inline-block; height:auto; background: red">
Label
</div>
<div style="position: relative; display:inline-block; height:100px; width:100px; background: blue">
<div style="position: relative; height: 20px; width: 20px">XXXX</div>
</div>