HTML CSS examples for CSS Widget:Footer aligned bottom
Place footer to the bottom in Single page
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .containerDiv {<!-- w w w .j av a2 s . co m--> position:relative; min-height:100%; background-color:Chartreuse; } .headerDiv { height:61px; background:black; width:100%; } .contentDiv { padding-bottom:61px; } .footerDiv { position:fixed; left:0; bottom:0; right:0; background-color:yellow; width:100%; height:61px; } .innerDiv { width:100%; height:61px; } </style> </head> <body> <div class="containerDiv"> <div class="headerDiv"></div> <div class="contentDiv"> <div class="innerDiv"></div> <div class="innerDiv"></div> <div class="innerDiv"></div> <div class="innerDiv"></div> <div class="innerDiv"></div> </div> <div class="footerDiv"></div> </div> </body> </html>