How To Change A Color List Style In Ul Css Code Example


Example: change bullet color css list


ul {
list-style: none; /* Remove default bullets */
}

ul li::before {

content: "\2022"; /* Add content: \2022 is the CSS Code/unicode for a
bullet */

color: red; /* Change the color */
font-weight:
bold; /* If you want it to be bold */
display: inline-block; /*
Needed to add space between the bullet and the text */

width: 1em;
/* Also needed for space (tweak if needed) */
margin-left: -1em; /*
Also needed for space (tweak if needed) */

}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable