Created
April 10, 2025 22:38
Horizontal lists with flex
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 flex for lists and text. */ | |
.list-flex { | |
display: flex; | |
justify-content: space-around; | |
} | |
.list-flex li { | |
flex-grow: 1; | |
} | |
/* Horizontal flex for lists and text with a | devider. */ | |
.list-flex-divider { | |
display: flex; | |
padding-left: unset; | |
list-style-type: none; | |
} | |
.list-flex-divider li { | |
flex-grow: 1; | |
text-align: center; | |
border-left: 1px solid var(--global-palette8); | |
} | |
.list-flex-divider li:first-child { | |
border-left: unset; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment