Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Footer 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!

Are you looking for space at the very bottom of the page and the footer? or space at the bottom of the footer container?

2 Answers

If 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.

http://g1k777.com

https://css-tricks.com/couple-takes-sticky-footer/

CSS Tricks is a great resource for all sorts of stuff like this.

Thanks for your kind reply but i have fixed it with another way.