How to change the bullet color of an HTML list without using a span with CSS?

Spread the love

To change the bullet color of an HTML list without using a span with CSS, we set the list-style-image property.

For instance, we write

li {
  list-style-image: url(images/yourimage.jpg);
}

to set the list-style-image property to url(images/yourimage.jpg) to set the bullet to an image.

Leave a Reply

Your email address will not be published. Required fields are marked *