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

Julianna Kahn
Julianna Kahn
20,702 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
Courses Plus Student 18,131 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,702 Points

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

Julianna Kahn
Julianna Kahn
20,702 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,702 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.