Questions tagged [sticky-footer]

Sticky Footer is a CSS technique used to anchor the footer section to the bottom of the page, regardless of the page's height. When the page height is less than the viewport, the Sticky Footer will be at the bottom of the viewport, and when the page height is longer than the viewport, the Sticky Footer will be at the bottom of the page.

Here's the canonical Sticky Footer Implementation:
http://ryanfait.com/html5-sticky-footer/

Here's a bare bones example:

<html>
    <head>
        <link rel="stylesheet" href="layout.css" ... />
    </head>
    <body>
        <div class="wrapper">
            <p>Your website content here.</p>
            <div class="push"></div>
        </div>
        <div class="footer">
            <p>Copyright (c) 2008</p>
        </div>
    </body>
</html>
* {
  margin: 0;
}
html, body {
  height: 100%;
}
.wrapper {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 auto -4em;
}
.footer, .push {
  height: 4em;
}

.footer {
  background: yellow;
}

Simple Demo in Plunker

screenshot

754 questions
-3
votes
7 answers

Creating a page footer div?

I need to create a page footer, basically a div that stretch 100% width of the page. With a height of 300px. I need it to stick to the absolute bottom of the page. Could somebody please show me how to do this using CSS? I have not included code as…
user3262259
  • 37
  • 1
  • 2
  • 5
-4
votes
2 answers

How to get the sticky footer to work?

I'm trying to figure out how to get the footer to stick to the bottom of the page in the css of http://bit.ly/138xOAB I've tried alot of things which were said in tutorials, such as: the position absolute, bottom:0, and min-height of the container…
HugOnline
  • 1
  • 3
-4
votes
1 answer

Page content leaking into footer

I just can't shake this page moving into the footer. Site is: https://raiderwriter.engl.ttu.edu/super/onecolumn.asp The #wrapper div is supposed to push a 70px margin down onto the footer, I think? I just want the footer to float below. Argh.
Caveatrob
  • 12,667
  • 32
  • 107
  • 187
-4
votes
3 answers

How to keep the footer at the bottom of the page (HTML Javascript CSS)

How do I keep the footer at the bottom of the page? Here is my code:
Copyright 2013 All rights reserved. That's about it. Is there any CSS that I can use to bring down the footer to the bottom of the page because when I use the
user2277747
  • 89
  • 2
  • 2
  • 6
1 2 3
50
51