Created
April 10, 2025 22:39
-
-
Save gmmedia/a3cf551318641fafcb86628371e37d38 to your computer and use it in GitHub Desktop.
Horizontal lists with grid
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
/* Horizontal grid for lists and text. */ | |
.list-grid { | |
display: grid; | |
grid-template-columns: repeat(auto-fit,minmax(132px, 1fr)); | |
} | |
/* Horizontal grid for lists and text with a | devider. */ | |
ul.list-grid-divider { | |
display: grid; | |
grid-template-columns: repeat(auto-fit,minmax(132px, 1fr)); | |
list-style-type: none; | |
} | |
.list-grid-divider li { | |
text-align: center; | |
border-right: 1px solid var(--global-palette8); | |
} | |
.list-grid-divider li:last-child { | |
border-right: unset; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment