# Problem to format color in dropdown ui node

**URL:** <https://discourse.nodered.org/t/problem-to-format-color-in-dropdown-ui-node/68648>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [6 October 2022 18:10 UTC](https://discourse.nodered.org/t/problem-to-format-color-in-dropdown-ui-node/68648 "2022-10-06T18:10:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bertaud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bertaud/32/80981_2.png) [@bertaud](https://discourse.nodered.org/u/bertaud)\
**Post date:** [6 October 2022 18:10 UTC](https://discourse.nodered.org/t/problem-to-format-color-in-dropdown-ui-node/68648/1 "2022-10-06T18:10:00Z")

</div>

in edit text node there is a simple way to change color to a specific edit text box using following syntax for example in label field

```auto
<font color= white > Identifiant </font>

```

or following syntaxe for value format field

```auto
<font color= white > {{msg.payload}} </font> 

```

for dropdown ui we area ble to do the same thing with label but i don't find the way to format value  
it strange to mr so perhaps i miss something somewhere . Is there a solution for this ? why in dropdown Ui we don't have format value field ?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [6 October 2022 19:29 UTC](https://discourse.nodered.org/t/problem-to-format-color-in-dropdown-ui-node/68648/2 "2022-10-06T19:29:25Z")

</div>

Use CSS in a UI-Template node.  
For example

```auto
md-option .md-text, md-select-value .md-text { 
color: green;
}

```

---

<div class="post-metadata">

**Author:** ![bertaud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bertaud/32/80981_2.png) [@bertaud](https://discourse.nodered.org/u/bertaud)\
**Post date:** [7 October 2022 06:27 UTC](https://discourse.nodered.org/t/problem-to-format-color-in-dropdown-ui-node/68648/3 "2022-10-07T06:27:19Z")

</div>

thanks it works fine !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 October 2022 06:27 UTC](https://discourse.nodered.org/t/problem-to-format-color-in-dropdown-ui-node/68648/4 "2022-10-21T06:27:57Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
