HTML CSS examples for CSS Widget:Footer
Align content in a fixed footer
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!--from w w w . ja v a2s. co m--> padding:0; margin:0; } ::-webkit-scrollbar { width:11px; height:11px; position:relative; margin:6px; } ::-webkit-scrollbar-track { box-shadow:Chartreuse; } ::-webkit-scrollbar-thumb { background-color:yellow; } ::-webkit-scrollbar-corner { background:transparent; } * { box-sizing:border-box; } html { height:100%; width:100%; } body { background:blue; color:pink; font-family:"Gotham SSm A"; text-align:center; height:100%; width:100%; display:table; margin:auto; } p { font-size:19px; font-weight:501; text-align:left; text-transform:uppercase; width:100%; margin:auto; left:0; } a { transition:0.3s all; text-decoration:none; } .button { background:WhiteSmoke; color:OrangeRed; display:inline-block; font-family:"Gotham SSm A"; font-size:19px; font-weight:501; line-height:2.6; padding:11px 21px; border-radius:3px; border:0; text-transform:uppercase; } .button:hover, .button:focus { color:grey; background:BlueViolet; } .download { background:Chartreuse; box-shadow:0px 0px 16px 0px yellow; margin:auto; padding:2%; min-height:51px; height:16%; width:100%; position:fixed; bottom:0; left:0; right:0; } .left { float:left; margin-top:14px; } .right { float:right; } </style> </head> <body> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <p> hi </p> <div class="download"> <div class="left"> <p>left-aligned text</p> </div> <div class="right"> <a href="#" class="button">button</a> </div> </div> </body> </html>