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 trial

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.