How do I change the bullet's color, on a ul, li. In HTML.
For example * Toyota
, the star that shows I want to change its color.
Asked
Active
Viewed 1,504 times
-1

ForceBru
- 43,482
- 10
- 63
- 98

Fawad.Ahmade
- 11
- 4
1 Answers
-2
ul {
list-style: none;
}
ul li::before {
content: "*";
color: red; /*What color you want change here*/
font-weight: bold;
display: inline-block;
width: 1em;
margin-left: -1em;
}
<ul>
<li>Hello</li>
</ul>
Try this.....!
<style>
ul {
list-style: none;
}
ul li::before {
content: "*";
color: red;
font-weight: bold;
display: inline-block;
width: 1em;
margin-left: -1em;
}
</style>

Annamalai
- 109
- 2
- 12
-
Damnn it worked thank you very much, was trying the whole day. – Fawad.Ahmade Oct 05 '20 at 09:55