# Html to table in node red

**URL:** <https://discourse.nodered.org/t/html-to-table-in-node-red/28387>\
**Category:** Dashboard\
**Created:** [16 June 2020 07:03 UTC](https://discourse.nodered.org/t/html-to-table-in-node-red/28387 "2020-06-16T07:03:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chorum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chorum/32/47644_2.png) [@Chorum](https://discourse.nodered.org/u/Chorum)\
**Post date:** [16 June 2020 07:03 UTC](https://discourse.nodered.org/t/html-to-table-in-node-red/28387/1 "2020-06-16T07:03:09Z")

</div>

Hello,

i would like to edit the backgroundcolor of a tablecell in a ui table node with the payload coming from a function node.

It worked with an html cell and a hex colorcode payload. But with that method i dont know how to put other content in that cell.

I found the thread with examples for ui tables. Here was the idea of creating html code with color and content for a table. But the whole data came as html. i would like to use html only for specific cells.

so i tried to send : `<div sytle='background-color: yellow; width:100%'>35</div>`  
to a cell, formated as html. Sadly i only get the content but not the color. I tried the color as hexcode as well.

maybe someone has a hint to get it to work ?  
btw i am not good at html...

I think the flow wont help here.

Greetings  
Chorum

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [16 June 2020 07:12 UTC](https://discourse.nodered.org/t/html-to-table-in-node-red/28387/2 "2020-06-16T07:12:00Z")

</div>

There is typo: `sytle` should be `style`

---

<div class="post-metadata">

**Author:** ![Chorum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chorum/32/47644_2.png) [@Chorum](https://discourse.nodered.org/u/Chorum)\
**Post date:** [16 June 2020 07:18 UTC](https://discourse.nodered.org/t/html-to-table-in-node-red/28387/3 "2020-06-16T07:18:59Z")

</div>

Well , what should i say , i didnt see that syntax fail 🙂

Thank you!

Chorum

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 June 2020 10:33 UTC](https://discourse.nodered.org/t/html-to-table-in-node-red/28387/4 "2020-06-16T10:33:57Z")

</div>

You might also want to check the rendered HTML using the dev tools to see whether each cell has a unique identifier on it. If so, that may help you with overriding the formatting.

---

<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:** [16 July 2020 10:34 UTC](https://discourse.nodered.org/t/html-to-table-in-node-red/28387/5 "2020-07-16T10:34:01Z")

</div>

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