Sticky Footer
Ensures the footer always stays at the bottom of the page.
- layout
- footer
- sticky
Code
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
footer {
margin-top: auto;
}Ensures the footer always stays at the bottom of the page.
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
footer {
margin-top: auto;
}