body { background:#f2f2f2; font:normal 12px Arial; } #div1 { background:black; height:150px; width:80%; line-height:50px; margin:20px auto; text-align:center; color:white; position:relative; } .div2 { background:red; width:250px; height:50px; line-height:50px; left:50px; bottom:0; position:absolute; }
<div id='div1'>Ini elemen Induk dan harus memiliki position:relative <div class='div2'>Ini DIV2 dengan bottom:0 dan left:50px</div> </div>