Div height 100% with absolute sticky footer - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer stick to bottom

Description

Div height 100% with absolute sticky footer

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">
#content {<!--  w w  w.  ja v a2  s .  c  om-->
   background:red;
   position:absolute;
   top:0;
   left:0;
   right:0;
   bottom:201px;
}

#footer {
   background:green;
   position:absolute;
   left:0;
   right:0;
   bottom:0;
   height:201px;
}
</style> 
 </head> 
 <body> 
  <div id="content">
    Lorem 
  </div> 
  <div id="footer">
    Lorem 
  </div>  
 </body>
</html>

Related Tutorials