Skip to content

Instantly share code, notes, and snippets.

@airglow923
Created July 6, 2025 16:51
Show Gist options
  • Save airglow923/9a8ea257f604abd2f4116dae77ec17ed to your computer and use it in GitHub Desktop.
Save airglow923/9a8ea257f604abd2f4116dae77ec17ed to your computer and use it in GitHub Desktop.
Stretch container size to the current screen size considering header and footer sizes
body {
height: 100dvh;
display: flex;
flex-direction: column;
}
main {
flex-grow: 1;
overflow: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment