Possible Duplicate:
Change bullets color in a list without span
Normally, the bullet point in ul/li is a black solid circle. I want to change the style of it, like I want to set the color of the bullet point to be green, I also want to change the bullet point to be a square. Anyone knows how to do that?
Note: We cannot change the color of the bullet of the unordered list by default but we can take the help of some other tags and selectors. There are two ways to change the color of the bullet: Using an extra markup tag. Using Css style ::before selector.
You will have to click on the Design tab located on the left side of the screen when you are editing your campaign. Once you click on that tab you will want to scroll a little bit down until you see a section that says "Fonts". Then, you will click on the "A" that has a color bar underneath it and select a new color.
To change the bullet to an image, we will add two new CSS classes one for the <ul> element the other one for the <li> element. For the list class, we will set the padding and the margin to "0" and set the list-style-type to none.
Apply the color to the li
and set the span
(or other child element) color to whatever color the text should be.
ul { list-style-type: square; } ul > li { color: green; } ul > li > span { color: black; }
JSFiddle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With