1
You need to use not only Absolute position in the overlapping div, but also relative position in the parent div. Follow an example: http://codepen.io/leofontes/pen/VmxZoN
html, body {
height: 100%;
width: 100%;
}
.one {
background-color: red;
height: 100%;
position: relative;
width: 100%;
}
.two {
background-color: blue;
height: 100px;
position: absolute;
top: 0;
right: 0;
width: 100px;
}
<div class="one">
<div class="two"></div>
</div>
Any doubt sends bullet that I help you ;)