Created
April 4, 2021 17:52
-
-
Save flabernardez/0aff37960cc60ebf6ba29a3459e58157 to your computer and use it in GitHub Desktop.
#css #grid grid responsive
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
.grid { | |
--cols: 3; | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(Max(calc(100% / var(--cols, 1)), 250px), 1fr)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment