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 trialJulianna Kahn
20,702 PointsSticky 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; } }
3 Answers
Julianna Kahn
20,702 PointsActually, I am using Visual Studio with the downloaded files and not Workspaces for this course.
Mark Wilkowske
Courses Plus Student 18,131 PointsIf you run my code do you see any issues?
Julianna Kahn
20,702 PointsYes, I am still seeing the scrollbars. I am running in Chrome if that makes any difference. Seems to be a mystery.
Leslie Lello
Front End Web Development Techdegree Student 8,297 PointsI 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
20,702 PointsI 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.
Mark Wilkowske
Courses Plus Student 18,131 PointsMark Wilkowske
Courses Plus Student 18,131 PointsHi Julianna, it may be a temporary issue with workspaces. It was for me and suddenly everything worked fine https://w.trhou.se/opt99ewqvy