gistfile1.css

html, body { height: 100%; } #container { min-height: 100%; } #main { overflow: auto; padding-bottom: 150px; /* must be same height as the footer */ } #footer { position: relative; margin-top: -150px; /* negative value of footer height */ height: 150px; clear: both; } /*Opera Fix*/ body:before { content: ""; height: 100%; float: left; width: 0; margin-top: -32767px; }
CSS: Sticky Footer

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.