# How to remove PowerTable cell padding

**URL:** <https://forum.inductiveautomation.com/t/how-to-remove-powertable-cell-padding/90480>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [May 16, 2024, 8:54am UTC](https://forum.inductiveautomation.com/t/how-to-remove-powertable-cell-padding/90480 "2024-05-16T08:54:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TechEnlive](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@TechEnlive](https://forum.inductiveautomation.com/u/TechEnlive)\
**Post date:** [May 16, 2024, 8:54am UTC](https://forum.inductiveautomation.com/t/how-to-remove-powertable-cell-padding/90480/1 "2024-05-16T08:54:53Z")

</div>

Hi, I want to remove cell padding space to show Single charachter data in power table. But when i reduce column width it look like this....

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/9677bafe34fbc71ed14405480fcf30979c915844.png)

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [May 16, 2024, 9:53am UTC](https://forum.inductiveautomation.com/t/how-to-remove-powertable-cell-padding/90480/2 "2024-05-16T09:53:10Z")

</div>

In Vision, the swing ellipsis behavior can be overridden with html. In a power table this would be done from the `configureHeaderStyle` and `configureCell` extension functions:

**Example:**

```python
#def configureHeaderStyle(self, colIndex, colName):
	return {'text': '<html>' + colName}

```

```python
#def configureCell(self, [...], colView):
	return {'text': '<html>' + textValue}

```

**Result:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/2/726ad46713fa7eb7ae30ad64a48acc9ef64a0abc.png)

---

<div class="post-metadata">

**Author:** ![TechEnlive](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@TechEnlive](https://forum.inductiveautomation.com/u/TechEnlive)\
**Post date:** [May 16, 2024, 11:41am UTC](https://forum.inductiveautomation.com/t/how-to-remove-powertable-cell-padding/90480/3 "2024-05-16T11:41:06Z")

</div>

> [@justinedwards.jle](#):
>
> `'text': '<html>' + colName`

Hi, Thanks a lot. Its work 👍

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/9/c9facae46e031ac462b1baf43ad90f15f1a73318.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 16, 2024, 12:18pm UTC](https://forum.inductiveautomation.com/t/how-to-remove-powertable-cell-padding/90480/4 "2024-05-16T12:18:00Z")

</div>

Fair warning: the HTML spec used in Java Swing is _ **HTML3** _, not anything newer.

---

<div class="post-metadata">

**Author:** ![TechEnlive](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@TechEnlive](https://forum.inductiveautomation.com/u/TechEnlive)\
**Post date:** [May 16, 2024, 1:49pm UTC](https://forum.inductiveautomation.com/t/how-to-remove-powertable-cell-padding/90480/5 "2024-05-16T13:49:38Z")

</div>

Ok. Then what is other solution.....????

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 16, 2024, 2:34pm UTC](https://forum.inductiveautomation.com/t/how-to-remove-powertable-cell-padding/90480/6 "2024-05-16T14:34:37Z")

</div>

Just letting you know that justin's solution works because it doesn't use any HTML syntax that is newer than Java supports. If you extend his solution by changing the HTML (and there are plenty of places where you might want to), you have to limit yourself to the supported version.
