Created
August 31, 2023 12:45
-
-
Save cadoo/40d1fe3d9af213fa311034ad597f1bc8 to your computer and use it in GitHub Desktop.
Modern, ultra-flexible container
This file contains 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
.container { | |
width: min(100vw - 3rem, var(--container-max, 80ch) ); | |
margin-inline: auto; | |
} | |
/* https://moderncss.dev/contextual-spacing-for-intrinsic-web-design/ */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment