CSS - Position Absolute Going to Bottom - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Absolute Position

Description

CSS - Position Absolute Going to Bottom

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">
.container {<!-- www .j  a  v a 2s . c  om-->
   background:blue;
   width:601px;
   height:301px;
   position:relative;
}

h2.title {
   width:100%;
   background:red;
   color:Chartreuse;
   bottom:0;
   margin:0;
   position:absolute;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <h2 class="title">Lorem ipsum dol</h2> 
  </div>  
 </body>
</html>

Related Tutorials