<!DOCTYPE html>
<style>
.container {
position: relative;
margin: 20px 0;
width: 200px;
height: 200px;
border: solid 2px;
}
.result {
position: absolute;
background: green;
}
</style>
<div class="container">
<div class="result" style="width: 100px; height: 100px; bottom: 0px;"></div>
</div>
<div class="container">
<div class="result" style="width: 100px; height: 200px;"></div>
</div>
<div class="container">
<div class="result" style="width: 100px; height: 100px;"></div>
</div>
<div class="container">
<div class="result" style="width: 200px; height: 100px;"></div>
</div>