Last active
December 11, 2015 22:08
-
-
Save wpscholar/4666876 to your computer and use it in GitHub Desktop.
Make bullets a different color without effecting list item 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
/** | |
* Make bullets a different color without effecting list item text. | |
* Works in all browsers including IE8+ | |
*/ | |
li { | |
list-style-type: none; | |
padding-left: 20px; | |
text-indent: -20px; | |
} | |
li:before { | |
content: "\2022"; /* Insert your UTF8 character code here to change the bullet. */ | |
color: red; | |
font-size: .8em; | |
line-height: 1em; | |
padding-right: 10px; | |
vertical-align: .2em; | |
} | |
/** | |
* Clear our bullets for nav menus | |
*/ | |
nav li { | |
padding: 0; | |
text-indent: 0; | |
} | |
nav li:before { | |
content: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment