HTML CSS examples for CSS Widget:Footer
Overflow footer hidden, pushing effect
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html {<!--from w ww . j a 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>