Last active
May 17, 2022 19:45
-
-
Save ihorduchenko/94438f2f59059be2799ba1ba5d453a18 to your computer and use it in GitHub Desktop.
Equal width grid columns
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
.some-wrapper { | |
--column-number: 3; | |
display: grid; | |
gap: 24px 32px; /* vertical / horizontal*/ | |
grid-template-columns: repeat(var(--column-number), minmax(0, 1fr)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment