# Question for string to color mapping in the dropdown list

**URL:** <https://forum.inductiveautomation.com/t/question-for-string-to-color-mapping-in-the-dropdown-list/28098>\
**Category:** Ignition\
**Created:** [September 9, 2019, 7:10am UTC](https://forum.inductiveautomation.com/t/question-for-string-to-color-mapping-in-the-dropdown-list/28098 "2019-09-09T07:10:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 9, 2019, 12:04pm UTC](https://forum.inductiveautomation.com/t/question-for-string-to-color-mapping-in-the-dropdown-list/28098/2 "2019-09-09T12:04:24Z")

</div>

You can use html to color what amounts to a table cell. It's a bit old school, but it works.

`<html><table width=1000 height=1000><tr><td bgcolor=black><font color=black>X`

The 'X' at the end preserves the cell height when it displays.

A window to demonstrate. Note that I added a column to put a friendly name into, and a custom property to retrieve it:  
[test\_dropdown\_color\_2019-09-09\_0755.zip](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5bae77a10102be41f4e957da4983a87c69b71300.zip) (4.0 KB)

Thread for reference. I had a similar issue with a table back in 2009. Fire up the wayback machine!

> [@Column color for table component](http://forum.inductiveautomation.com/t/column-color-for-table-component/1373):
>
> I can see where we can set the background color for a row, but not a column. Will this be something in the works, or will I just have to satisfy myself with changing the color of the text? Or-- even more likely-- am I missing something again? laughing

---

_[View the full topic](https://forum.inductiveautomation.com/t/question-for-string-to-color-mapping-in-the-dropdown-list/28098)._
