Created
March 25, 2022 13:34
-
-
Save dustinleer/7d1672346bac25bb14b139ff6fe719f6 to your computer and use it in GitHub Desktop.
Columns css equality
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
ul.columns { | |
column-count: 2; | |
column-gap: 20px; | |
} | |
ul.columns li { | |
font-size: 16px; | |
line-height: 2; | |
/* This will keep the li from breaking on to new lines */ | |
-webkit-column-break-inside: avoid; | |
page-break-inside: avoid; | |
-moz-column-break-inside: avoid; | |
break-inside: avoid; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment