Css position: relative; stick to bottom - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Relative Position

Description

Css position: relative; stick to bottom

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from   ww w .j  a  v a2 s  .c  o m-->
 <body> 
  <div style="height:500px;width:500px;background-color:blue;"></div> 
  <div style="height:500px;width:500px;background-color:red;"></div> 
  <div style="height:500px;width:500px;background-color:green;padding-top:20px;"> 
   <p>Lorem ipsum dolor sit am</p> 
  </div>  
 </body>
</html>

Related Tutorials