HTML CSS examples for CSS Widget:Footer
Body push footer while scrolling
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from www . ja v a2s . co m--> overflow-x:hidden; margin:0; } #content { background:lightgrey; border-bottom:2px solid Chartreuse; height:1501px; margin-bottom:121px; } footer { background:grey; padding:51px; line-height:21px; text-align:center; position:fixed; bottom:0; width:100%; z-index:-2; } </style> </head> <body> <div id="content"> Lorem ipsum dolor sit amet, consectetur adipiscing e </div> <footer> <a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing el</a> </footer> </body> </html>