Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Julianna Kahn
Julianna Kahn
20,701 Points

Sticky footer still leaves scroll bars.

Actually, my footer shows 112px rather than 89px, but either way, I can't get rid of the scroll bars. I believe all the relevant code would be below:

.main-footer { padding: 2em 0; background: #d9e4ea; text-align: center; }

/* ---- Page Elements ---- */

/* ================================= Media Queries ==================================== */

@media (min-width: 769px) {

.wrap { min-height: calc(100vh - 112px); }

.container { width: 70%; max-width: 1000px; margin: 0 auto; } }

Mark Wilkowske
Mark Wilkowske
Treehouse Moderator 17,494 Points

Hi Julianna, it may be a temporary issue with workspaces. It was for me and suddenly everything worked fine https://w.trhou.se/opt99ewqvy

3 Answers

Julianna Kahn
Julianna Kahn
20,701 Points

Actually, I am using Visual Studio with the downloaded files and not Workspaces for this course.

Julianna Kahn
Julianna Kahn
20,701 Points

Yes, I am still seeing the scrollbars. I am running in Chrome if that makes any difference. Seems to be a mystery.

Leslie Lello
seal-mask
.a{fill-rule:evenodd;}techdegree
Leslie Lello
Front End Web Development Techdegree Student 8,297 Points

I am getting that in FireFox, too. I am using the Treehouse Workspace. Footer is at 89px.

I was tinkering with the numbers and this seemed to work:

.wrap { min-height: calc(100vh - 130px); }

Not sure if this will work in all circumstances, though.

Julianna Kahn
Julianna Kahn
20,701 Points

I can get my code to work. I am just wondering why the footer ends up showing 112 pixels instead of 89 pixels like in the tutorial. But thanks.