# How to customize the background color of a power table cell?

**URL:** <https://forum.inductiveautomation.com/t/how-to-customize-the-background-color-of-a-power-table-cell/34878>\
**Category:** Ignition\
**Created:** [May 19, 2020, 1:33pm UTC](https://forum.inductiveautomation.com/t/how-to-customize-the-background-color-of-a-power-table-cell/34878 "2020-05-19T13:33:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [May 19, 2020, 1:33pm UTC](https://forum.inductiveautomation.com/t/how-to-customize-the-background-color-of-a-power-table-cell/34878/1 "2020-05-19T13:33:37Z")

</div>

Original post: [Customizing Table Column's Font Color](http://forum.inductiveautomation.com/t/customizing-table-columns-font-color/199)

How would I modify the background color of the power tables’ cell?  
The example for `'<HTML><FONT COLOR=green>'` works but I can’t figure out the attribute for background color.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [May 19, 2020, 6:03pm UTC](https://forum.inductiveautomation.com/t/how-to-customize-the-background-color-of-a-power-table-cell/34878/2 "2020-05-19T18:03:56Z")

</div>

The best way is to use the power table’s configureCell extension function. Right click on the component and select Scripting. You will see configureCell extension function with an example. Something like this:

```auto
if selected:
	return {'background': self.selectionBackground}
elif rowView % 2 == 0:
	return {'background': 'white'}
else:
	return {'background': '#DDDDDD'}

```

You can certainly adjust that for an individual cell by doing the following:

```auto
if colIndex == 0 and rowIndex == 0:
	return {'background': '#DDDDDD'}
else:
	return {'background': 'white'}

```

Hope this helps.
