Align button to bottom of absolute DIV dialog - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Align button to bottom of absolute DIV dialog

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
div.dialog {<!-- ww  w  . ja va 2s  . co m-->
   position:absolute;
   top:0px;
   width:201px;
   height:201px;
   border:2px solid Chartreuse;
}

button {
   position:absolute;
   bottom:0;
}

button.open {
   left:0;
}

button.close {
   right:0;
}
</style> 
 </head> 
 <body> 
  <div class="dialog"> 
   <div class="dialog-content"> 
   </div> 
   <button class="open">Open</button> 
   <button class="close">Close</button> 
  </div>  
 </body>
</html>

Related Tutorials