# Text in node 'template' does not get red. Why?

**URL:** <https://discourse.nodered.org/t/text-in-node-template-does-not-get-red-why/96784>\
**Category:** Dashboard\
**Tags:** ui-template\
**Created:** [28 April 2025 09:11 UTC](https://discourse.nodered.org/t/text-in-node-template-does-not-get-red-why/96784 "2025-04-28T09:11:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nosered1966](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nosered1966/32/52859_2.png) [@nosered1966](https://discourse.nodered.org/u/nosered1966)\
**Post date:** [28 April 2025 09:11 UTC](https://discourse.nodered.org/t/text-in-node-template-does-not-get-red-why/96784/1 "2025-04-28T09:11:28Z")

</div>

Hi all  
I am currently trying to adjust the text, text size and colour in the dashboard.  
But I'm already failing with this:

```auto
<!DOCTYPE html>
<html>
    <head>
        <style>
            p {color: red;}
        </style>
    </head>    
<body>
<p>red</p>
</body>
</html>

```

Why is the text "red" not shown in red on the dashboard (but in white)?

When I use this, it works as expected:

```auto
<font color=#FFFF00 size="5">{{((msg.payload.power - msg.payload.grid_feedin) + msg.payload.grid_consumption).toFixed(0)}}</font>

```

Kind regards  
Thomas

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 April 2025 09:47 UTC](https://discourse.nodered.org/t/text-in-node-template-does-not-get-red-why/96784/2 "2025-04-28T09:47:32Z")

</div>

If you are using ui-template, then you should not add html or body tags (the dashboard framework sets all of this up)

To provide an answer to your question, please state what version of dashboard you are using.

---

<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:** [28 May 2025 09:48 UTC](https://discourse.nodered.org/t/text-in-node-template-does-not-get-red-why/96784/3 "2025-05-28T09:48:15Z")

</div>

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