23 responses to “Making footer stick to the bottom of the page”

  1. E. Michael Martin

    I would say that this should only be used in horizontal-scrolling sites. Otherwise it obscures content, and as we know, content is King.

  2. ths

    Is there a way to make the footer div always be at the bottom of the page, regardless of where the content is? so if i scrolled up, through content the footer will still be there and the content div would just go behind it?

  3. paresh

    nice stuff.

  4. Cade

    My footer is inside my container divs and when I pulled them out, and tried this, I was not as successful. Cn your solution be modified to work if the footer is in the main container as well?

  5. Xenostar

    A dynamic sticky footer would require some sort of Javascript or CSS-SSC type of system to create variable driven CSS sheets.

  6. Bundle

    THS – There is a way to do what you’re looking for. I’ve used it a couple times. It uses pure CSS with conditional comments (and an IE-proprietary property or two) to overcome WinIE shortcomings regarding fixed positioning. Check it out at: http://cookiecrook.com/bugtests/fixed.htm

  7. Orlando Villas

    Neat idea.

  8. Affordable Web Design

    That just makes sense lol. Great posting, thank you for the “to-do”.

  9. Uzaktan Eğitim

    Great thank you for tutorial..

  10. Chris Peterson

    A very simple solution that just almost works perfectly.

    The problem with it is that the window assumes there is more content to come and the scrollbar is always there even if there is enough space for all the content to fit. You can see the issue in the screenshot you took, there is enough space but the scrollbar is still there. I don’t know about you but if you don’t have to scroll then the scrollbar should not be there.

  11. Sam

    Sorry but this is useless.

    I had a gallery and i wanted to add a footer at the bottom.

    The whole thing went mishmash and messed up the entire page layout.

  12. Joker

    I hate websites that do things like this, the only use for it is as seen in Facebook but that’s even somewhat annoying.

  13. Joey

    does this work if the #content is positioned absolutely? I can’t seem to get it to work correctly. On the site I’m using this for, I have a main wrapper (relative) header (absolute) content (absolute) and footer (relative, outside the main wrapper) yet it still seems that the footer is unaffected by this. Any ideas?

  14. Giacomo

    Great tutorial! Thank’s a lot: I’ve been tying to solve the sticky-footer problem since two days, but no result.
    Your solution works fine.

  15. Kyle

    I’ve tried several other working sticky footers. This is by far the most simple and best working. Thank you.

  16. krisyoshi

    Finally .. a simple solution that works. Thank you greatly!

  17. BILLYBOY

    I had the same problem as chris, the scrollbar wouldn’t get out even tweaking all the footer measures… I finally zeroed the container border and all works like a charm!!!!
    THANK YOU!!!

  18. Make the Footer Stick to the Bottom of a Page « My Graphic Friend's blog
  19. Affordable Web Development

    Great tutorial! Now we only have to wait until ie5/6 usage drops off so we don’t have to compromise.

Leave a Reply