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 trialMax S.
4,840 PointsFooter not at the bottom.
Hello Guys, if webpage have less content, so it shows space below the footer. can anyone help me or suggest me any track?
Thanks!
2 Answers
Damian Toczek
4,471 PointsIf you have something like
<body><header>My Header</header><main>My Content</main><footer>My Footer</footer></body>
you can add the following:
main { min-height:calc( 100vh - 100px); }
change the "- 100px" higher or lower depending how big your footer etc is. You can look into my source code and check the <main> css.
mryoung
4,156 Pointshttps://css-tricks.com/couple-takes-sticky-footer/
CSS Tricks is a great resource for all sorts of stuff like this.
Max S.
4,840 PointsThanks for your kind reply but i have fixed it with another way.
Aidan Caddle
18,983 PointsAidan Caddle
18,983 PointsAre you looking for space at the very bottom of the page and the footer? or space at the bottom of the footer container?