Created
February 8, 2018 10:46
-
-
Save hartraft/420adaf30cdaccc51094037e6b1d9bfb to your computer and use it in GitHub Desktop.
css to align word wrap correctly
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 li { | |
/* | |
* We want the bullets outside of the list, | |
* so the text is aligned. Now the actual bullet | |
* is outside of the list’s container | |
*/ | |
list-style-position: outside; | |
/* | |
* Because the bullet is outside of the list’s | |
* container, indent the list entirely | |
*/ | |
margin-left: 1em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment