Created
March 25, 2015 01:13
-
-
Save marisqaporter/4460e4d0511cc742ac84 to your computer and use it in GitHub Desktop.
Fancy Unordered List CSS with unique colors for each li
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
#breakfast-benefits { | |
float:left; position:relative; | |
} | |
#breakfast-benefits li { | |
list-style-type:none; | |
padding-left:30px; | |
} | |
#breakfast-benefits li:before { | |
content: "■"; | |
color:#61c0e1; | |
margin-right:10px; | |
} | |
#breakfast-benefits li:nth-child(2):before { | |
color:#f2994f; | |
} | |
#breakfast-benefits li:nth-child(3):before { | |
color:#787878; | |
} | |
#breakfast-benefits li:nth-child(4):before { | |
color:#1A3758; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment