Skip to content

Instantly share code, notes, and snippets.

@benplum
Last active December 16, 2015 12:38
Show Gist options
  • Save benplum/5435690 to your computer and use it in GitHub Desktop.
Save benplum/5435690 to your computer and use it in GitHub Desktop.
List styles colored differently then list text.
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