HTML CSS examples for CSS Widget:Footer aligned bottom
Layout a footer stick to bottom when content is short
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from w w w. j a va2 s. c o m--> min-height:100%; padding-bottom:201px; position:relative; } footer { position:absolute; bottom:0; height:201px; left:0; right:0; } .container { height:1001px; border:2px solid Chartreuse; } footer { border:2px solid yellow; } </style> </head> <body> <div class="container"> Lorem ipsum dolor </div> <footer> Lorem ipsum do </footer> </body> </html>