CSS - sticky footer + sticky "message form" - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer stick to bottom

Description

CSS - sticky footer + sticky "message form"

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">
* {<!--  www .jav  a 2  s  . com-->
   margin:0
}

html,
body {
   height:100%
}

.wrapper {
   height:auto !important;
   height:100%;
   margin:0 auto -11em;
   min-height:100%;
}

.push {
   height:11em;
}

form {
   background-color:Chartreuse;
   height:41px;
}
</style> 
 </head> 
 <body> 
  <div class="wrapper"> 
   <p>Lorem ipsum dolor sit amet</p> 
   <div class="push"></div> 
  </div> 
  <div class="messages"> 
   <ol> 
    <li>Lorem ipsum</li> 
    <li>Lorem ipsum</li> 
    <li>Lorem ipsum d</li> 
   </ol> 
   <div class="messages-push"></div> 
   <form action="#"> 
    <fieldset> 
     <input type="text"> 
     <button type="submit">Lore</button> 
    </fieldset> 
   </form> 
   <br> 
  </div> 
  <div class="footer"> 
   <p>Lorem ipsum dolor </p> 
  </div>  
 </body>
</html>

Related Tutorials