HTML CSS examples for CSS Widget:Footer aligned bottom
Move my footer to the bottom of the page
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #foot {<!-- w w w . j a v a 2 s .c o m--> left:0px; right:0px; color:Chartreuse; height:51px; background-color:yellow; width:100%; margin-bottom:0px; bottom:0px; margin-right:0px; z-index:104; } #foot a { height:51px; width:76px; float:left; color:blue; text-align:center; text-decoration:none; line-height:26px; } #foot p { position:absolute; width:151px; height:51px; right:0px; margin-bottom:0px; margin-right:0px; margin-top:0px; bottom:0px; top:0px; } html, body { height:100%; margin:0; } .page-wrap { min-height:100%; margin-bottom:-51px; } .page-wrap:after { content:""; display:block; } #foot, .page-wrap:after { height:51px; } </style> </head> <body> <div class="page-wrap"> </div> <div id="foot"></div> </body> </html>