HTML CSS examples for CSS Layout:Div Align
Aligning three div element inside a box from the bottom
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .area_holder {<!--from w w w .j ava 2 s. c o m--> position:relative; height:221px; width:51px; background-color:Chartreuse; padding:6px 11px 11px 11px; } #holder { position:absolute; left:0; bottom:0; padding:6px 11px 11px 11px; } .box { height:51px; width:51px; background-color:yellow; margin-top:6px; } </style> </head> <body> <div class="area_holder"> <div id="holder"> <!--<div class="box">1</div>--> <div class="box"> 2 </div> <div class="box"> 3 </div> <div class="box"> 4 </div> </div> </div> </body> </html>