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 trialNattapol Kamolbal
15,528 PointsSticky footer with undefined height
The method showed in this video worked well with known height footer. But when it comes to undefined height footer, like WordPress theme's footers, this method doesn't work. Are there alternatives to solve this problem?
2 Answers
Guil Hernandez
Treehouse TeacherThis video will teach you how to create a sticky footer with an undefined height using flexbox.
Hope this helps. :)
Virat Kohli
Courses Plus Student 2,135 Pointsgive footer bottom offset of 0 & position:absolute...
i think it work
Nattapol Kamolbal
15,528 PointsI tried using position:absolute as you suggest, combined with bottom: 0; The footer sticked to the bottom very well but the problem is that it didn't take up space which make the content go through the footer.
Virat Kohli
Courses Plus Student 2,135 PointsVirat Kohli
Courses Plus Student 2,135 Pointsthnx Guil
Nattapol Kamolbal
15,528 PointsNattapol Kamolbal
15,528 PointsThank you :) Plan to take this course next.