Created
July 6, 2025 16:51
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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