Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Layout Basics Getting Started with CSS Layout Creating a Sticky Footer

Emmanuel Rojas
Emmanuel Rojas
6,994 Points

Sticky footer is not Working

For some reason the Sticky footer is not Working, I already tryed using the calc, but I still getting the gap, infact, before I add the calc in my Media Queries I get the scrollbar but also my footer do not go to the bottom, I get an space between the bottom and the footer, and after I dd the calc: min-height: calc(100vh - 89px); I get the same problem.

Andrew McCormick
Andrew McCormick
17,730 Points

please share your code as well as screenshots to help us see what you are seeing. thanks

3 Answers

Emmanuel Rojas
Emmanuel Rojas
6,994 Points

Thank you Andrew let me show you what I have done, this is a onedrive link with two screenshots

https://onedrive.live.com/?authkey=%21AFbbi2dcr4AYbOY&id=96112A8F10C56FB4%21125&cid=96112A8F10C56FB4

Sean T. Unwin
Sean T. Unwin
28,690 Points

Hi Emmanuel. That link is not public so we are unable to view.

Could you post your code? Here is a link for how to do that.

Emmanuel Rojas
Emmanuel Rojas
6,994 Points

Hi everyone I am sending my doubt again this time it is a codepen link

For some reason the Sticky footer is not Working, I already tried using the calc, but I still getting the gap, infact, before I add the calc in my Media Queries I get the scrollbar but also my footer do not go to the bottom, I get an space between the bottom and the footer, and after I dd the calc: min-height: calc(100vh - 89px); I get the same problem.

http://codepen.io/era104/pen/dMdXaX

Sean T. Unwin
Sean T. Unwin
28,690 Points

If I understand your question correctly after viewing the Pen, it appears that this is simple case of adding, margin: 0; to the body rule. Apologies for not replying earlier.