Footer at bottom of page with dynamic content area - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer aligned bottom

Description

Footer at bottom of page with dynamic content area

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">
html {<!--from  ww  w .ja  v  a 2 s .  c o m-->
   position:relative;
   min-height:100%;
}

body {
   margin:0 0 100px;
   padding:26px;
}

footer {
   background-color:Chartreuse;
   position:absolute;
   left:0;
   bottom:0;
   height:100px;
   width:100%;
   overflow:hidden;
}
</style> 
 </head> 
 <body> 
  <article> 
   <!-- or <div class="container">, etc. --> 
   <h1>Lorem ipsum dolor sit amet, </h1> 
   <p>Lorem ipsum dolor s</p> 
   <p>Lorem ipsum dolor s</p> 
  </article> 
  <footer> 
   <h1>Lorem ipsum do</h1> 
  </footer>  
 </body>
</html>

Related Tutorials