# Changing bullet colour with CSS

**URL:** <https://community.hubspot.com/t/changing-bullet-colour-with-css/107100>\
**Category:** Email Marketing Tool\
**Tags:** professional, marketing-email\
**Created:** [May 14, 2024, 1:52pm UTC](https://community.hubspot.com/t/changing-bullet-colour-with-css/107100 "2024-05-14T13:52:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LRrokaj7](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@LRrokaj7](https://community.hubspot.com/u/LRrokaj7)\
**Post date:** [May 14, 2024, 1:52pm UTC](https://community.hubspot.com/t/changing-bullet-colour-with-css/107100/1 "2024-05-14T13:52:04Z")

</div>

Hello,

I am trying to change the colour of the bullets only but when I add the extra style to the \<ul\>, the colour of the text changes as well. What can I do?

The colour of the bullet should be #fc6676

The colour of the text should be #1f2124

 ![Bildschirmfoto 2024-05-14 um 15.47.35.png](https://d2qpr2jzcazej7.cloudfront.net/original/1X/990385a086c7ce0b31ee5f0f2ee09fd20cc73d4b.png)

I have attached an image of the code below.

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [May 14, 2024, 8:58pm UTC](https://community.hubspot.com/t/changing-bullet-colour-with-css/107100/2 "2024-05-14T20:58:57Z")

</div>

Hey @LRrokaj7 thank you for posting in our Community!

You can style only the pseudo-element, you can change the bullet color without affecting the text color. Adjust the content, color, width, and margin-left properties as needed to customize the appearance of the bullets.

To our top experts, @DanielSanchez and @Anton any recommendations for @LRrokaj7 matter?

Thank you,

Pam

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [May 15, 2024, 8:01am UTC](https://community.hubspot.com/t/changing-bullet-colour-with-css/107100/3 "2024-05-15T08:01:28Z")

</div>

Hi @LRrokaj7,

if you want to apply those colors to all bullets on every page you can put this code into your CSS

```lia-code-sample
li::marker{color:#fc6676;} {# This is the bullet color #}
li{color:#1f2124;} {# This is the text color #}

```

If you want to have more flexibility you could work with classes in your rich-text/custom module like this:

```lia-code-sample
<ul class="default-bullets">
<li>Lorem ipsum</li>
</ul>

<ul class="other-bullets">
<li>Lorem ipsum</li>
</ul>

```

and than write the CSS like this:

```lia-code-sample
ul.default-bullets li::marker{color:#fc6676;} {# This is the bullet color #}
ul.default-bullets li{color:#1f2124;} {# This is the text color #}

ul.other-bullets li::marker{color:#green;} {# This is the bullet color #}
ul.other-bullets li{color:#blue;} {# This is the text color #}

```

Of course you could implement the theme/brand variables so the colors would automatically change if you’d change colors in your theme or brand settings.

best,

Anton
