Flexbox for Footer Stick to Bottom in CSS


Keep the footer at the bottom of the page, regardless of content height.

Source Code

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.content {
    flex: 1;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments