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 CSS Layout Basics Getting Started with CSS Layout Creating a Sticky Footer

Div extends past 100VH

I just wanted to confirm that this is only applicable when you have contents within a DIV that is not 100% of the viewport. So if the content with my DIV already exceeds past 100% of the viewport, this sticking the footer doesnt make sense?

1 Answer

Arikaturika Tumojenko
Arikaturika Tumojenko
8,897 Points

Yes, it makes sense. That's why Guil used the sticky footer when the min-width of the browser was 769px and the content was expanding too much on the horizontal so it didn't take up 100vh anymore.