CSS CSS Layout Basics Getting Started with CSS Layout Creating a Sticky Footer

Todd Alcock
Todd Alcock
5,182 Points

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?

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.