Last active
December 16, 2015 12:38
-
-
Save benplum/5435690 to your computer and use it in GitHub Desktop.
List styles colored differently then list text.
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
ol { counter-reset: item; } | |
ol li, ul li { color: black; list-style: none; } | |
ol li:before { color: red; counter-increment: item; content: counter(item) ". "; margin: 0 0 0 -20px; text-align: right; } | |
ul li:before { background: transparent; border: 1px solid red; border-radius: 100%; content: ''; display: block; float: left; height: 8px; margin: 10px 0 0 -20px; width: 8px; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment