Skip to content

Instantly share code, notes, and snippets.

@luciaaldana
Last active September 13, 2022 18:47
Show Gist options
  • Save luciaaldana/c2d7560e39f57b787ab4a04ba4827da8 to your computer and use it in GitHub Desktop.
Save luciaaldana/c2d7560e39f57b787ab4a04ba4827da8 to your computer and use it in GitHub Desktop.
Keep the footer always at the bottom
// CSS
div {
display: flex;
flex-direction: column;
height: 100vh;
}
header {
height: 60px;
}
main {
display: flex;
flex: 1;
}
footer {
height: 60px;
align-self: flex-end;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment