Code: Select all
<div style="position: relative;"> <-- you need to put "relative" here, otherwise "absolute" positioning will not work as you expect -->
<div style="position: absolute; top: 0; left: 0;">this is first div</div>
<div style="position: absolute; top: 0; left: 0;">this is second div</div>
</div>