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 trialChris Davis
16,280 PointsSticker footer needed to be altered
After i updated this code the sticky footer was working but it was being pushed about 20px below the bottom of the screen which caused the browser to add a scroll bar in large screen view.
My .wrap css was...
.wrap {
min-height: calc(100vh - 89px);
}
I checked my footer height in chrome tools and it was in fact 89px tall. I can't understand why it was be pushed down since i was taught that you should subtract the height of the footer from 100% of the viewport height. Anyways i updated my .wrap class through trial and error to...
.wrap {
min-height: calc(100vh - 112px);
}
and it finally worked as expected. Can anyone shed some light on this? Why did i have to subtract an additional 23px from the .wrap class?
Kai-Ting Lin
5,712 PointsI also have the same question and would like have someone to resolve this mystery!
1 Answer
Frans de Haan
5,193 PointsIts the margin of the paragraph that collapse with the .wrap give the .wrap a padding-bottom than the problem is solved.
Máté Tóth-Csák
7,509 PointsMáté Tóth-Csák
7,509 PointsGive this man a cookie! The problem should be fixed