HTML CSS examples for CSS Widget:Footer
Add a footer to the page without a wrapper DIV
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div#footer {<!--from w w w . j a va 2 s . co m--> position:absolute; background-color:Chartreuse; color:yellow; width:100%; height:26px; bottom:0px; margin-top:-26px; } body { position:absolute; width:100%; min-height:100%; } body:after { line-height:26px; white-space:pre; content:"\A"; } </style> </head> <body> Lorem ipsum dolor sit <br> <div id="footer"> Lorem ipsum dolor sit amet, consectet </div>Lorem ipsum dolor sit <br> </body> </html>