To change the color of a bullet in a list, which of the following should be done?

DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in free credit!

In my germinating years, the general advice was this:

  • List item
li { color: red; } /* bullet */
li span { color: black; } /* text */

Not terrible, but not great. You’re “resetting” everything at the span level, so it gets more complicated the more you do.

Things are getting much easier. Let’s take a walk through this world getting more modern as we go.


An alternative was to rip off the default list styling and replace it with a pseudo-element.

ul {
  list-style: none;
}

li::before {
  content: "• ";
  color: red;
}

If we need to count, we could do that with CSS counters.

ol {
  list-style: none;
  counter-reset: my-awesome-counter;
}

ol li {
  counter-increment: my-awesome-counter;
}

ol li::before {
  content: counter(my-awesome-counter) ". ";
  color: red;
}

Quick aside here: this doesn’t help with the color, but you can specify what character to use for the bullet by setting a string, like:

ul {
  list-style-type: '✽ ';
}

This is as of Firefox 39 (2015) and Chrome 79 (which comes out Dec 9, 2019).

For ordered lists, there is a ton of language-specific options. And those language styles work for CSS counters as well, which you can learn more about in Hui Jing’s deep dive.

See the Pen
Random CSS counters playground by Chen Hui Jing (@huijing)
on CodePen.


But all the while, we only wanted to select the stupid bullet (or whatever it is) and style it. Now we are starting to be able to do just that.

As of Firefox 68 (July 2019), you can do like:

li::marker {
  color: red;
  content: "►";
}

…which, as you can see, changes the color and the bullet thing That is definitely the cleanest and easiest way to go, so it’s nice to see progress.

Tejas demonstrates:

See the Pen
::marker example by Tejas (@tejask)
on CodePen.

Manuel Matuzović notes that if you set an element to a list-item display type, you can use markers on them as well.

h2 {
  display: list-item;
}

h2::marker {
  color: orange;
  content: "☞";
}

Even Safari has support at the time of this writing, so we should lean on Chrome here.

Desktop

ChromeFirefoxIEEdgeSafari
86 68 No 86 11.1

Mobile / Tablet

Android ChromeAndroid FirefoxAndroidiOS Safari
107 106 107 11.3-11.4

You can create a list style for any kind of hierarchical list, from a simple one that includes just two levels of hierarchy, to a complex one that uses many styles of numbers and letters to define multiple levels.

After you format a level of hierarchy, you update (redefine) the list style to incorporate that level. For example, if your list has five levels of hierarchy, you need to update your starting style five times to fully define the style. The process results in a single style that automatically formats a list with the same number of levels you defined. You can then use that style for other lists in your document.

  1. Click where you want to start your list.

  2. In the Format

    To change the color of a bullet in a list, which of the following should be done?
     sidebar, click the Style button near the top.

    If the text is in a text box, table, or shape, first click the Text tab at the top of the sidebar, then click the Style button.

  3. Click the pop-up menu to the right of Bullets & Lists, then click

    To change the color of a bullet in a list, which of the following should be done?
    at the top of the List Styles pop-up menu.

    To change the color of a bullet in a list, which of the following should be done?
  4. Type a name for the new style in the List Styles pop-up menu, then press Return.

  5. Type the first item in your list.

  6. Use the controls in the Bullets & Lists section to choose a number or bullet style for this hierarchy level.

    An asterisk appears next to the style name in the pop-up menu to indicate that you made a change to the style.

  7. Click the pop-up menu next to Bullets & Lists, then click the Update button.

    Clicking Update changes the format of any existing list items at the same level of hierarchy.

    To change the color of a bullet in a list, which of the following should be done?
  8. Press Return to go to the next line, then press Tab to indent it.

  9. Use the Bullets & Lists controls again to set a number or bullet style, adjust spacing, and make any other format changes.

  10. Click the pop-up menu next to Bullets & Lists, then click the Update button.

  11. Continue formatting each level of hierarchy, clicking the Update button before moving to the next level.

Only formatting changes that you make in the Bullets & Lists section are included in the list style. Changes you make using the controls in the Font section (font, font color, and character styles) aren’t included.

If you have a list style you use frequently, you can create a keyboard shortcut to apply it.