# Ability to change table column heading colors

**URL:** <https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206>\
**Category:** Classic Servoy\
**Created:** [December 4, 2004, 7:07pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206 "2004-12-04T19:07:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cain](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@Cain](https://forum.servoy.com/u/Cain)\
**Post date:** [December 4, 2004, 7:07pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/1 "2004-12-04T19:07:14Z")

</div>

REALLY low priority, but…

it’d be nice to be able to change the color of the headers in a table view. This seems to be the last bit of screen area that we can’t color for the user.

Probably a nice revision for Servoy 12.8? ![:wink:]( "Wink")

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [December 6, 2004, 10:42am UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/2 "2004-12-06T10:42:36Z")

</div>

If you use html(with color info) in the field title property, I think it already works

---

<div class="post-metadata">

**Author:** ![Cain](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@Cain](https://forum.servoy.com/u/Cain)\
**Post date:** [December 6, 2004, 5:50pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/3 "2004-12-06T17:50:23Z")

</div>

I know this is pretty basic, but could you elaborate a bit? The best I could get was with “”, which colored the background of the text in the headings, but not the grey block that the text was in.

Probably bad syntax. I don’t write a lot of html. ![:?]( "Confused")

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [December 7, 2004, 9:38am UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/4 "2004-12-07T09:38:13Z")

</div>

```auto
<html><font color="red">hi</font></html>

```

---

<div class="post-metadata">

**Author:** ![Cain](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@Cain](https://forum.servoy.com/u/Cain)\
**Post date:** [December 7, 2004, 3:12pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/5 "2004-12-07T15:12:24Z")

</div>

Not the font color, nor the background of the text. The whole gray block that is the header.

---

<div class="post-metadata">

**Author:** ![maarten](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@maarten](https://forum.servoy.com/u/maarten)\
**Post date:** [December 7, 2004, 3:26pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/6 "2004-12-07T15:26:27Z")

</div>

try this:(set a fixed width of eg 100px in the table tag)

```auto
<table bgcolor="red" width="100">
      <tr>
        <td>
          myField
        </td>
      </tr>
    </table>

```

---

<div class="post-metadata">

**Author:** ![Cain](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@Cain](https://forum.servoy.com/u/Cain)\
**Post date:** [December 7, 2004, 4:34pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/7 "2004-12-07T16:34:25Z")

</div>

Thanks Maarten.

I think I’d rather leave the gray than take away the resizing ability just to get a color, though.

If this ever becomes a property, I’ll use it, but this isn’t critical, anyway. For now, I’ll just keep the gray.

---

<div class="post-metadata">

**Author:** ![jweaver](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jweaver](https://forum.servoy.com/u/jweaver)\
**Post date:** [December 7, 2004, 5:05pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/8 "2004-12-07T17:05:51Z")

</div>

Chris,

You could over state the HTML table width like this: (eg 800px)

```auto
<table bgcolor="red" width="800">
      <tr>
        <td>
          myField
        </td>
      </tr>
    </table>

```

Column resizing ability in Servoy is unaffected.

---

<div class="post-metadata">

**Author:** ![Cain](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@Cain](https://forum.servoy.com/u/Cain)\
**Post date:** [December 7, 2004, 5:16pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/9 "2004-12-07T17:16:02Z")

</div>

That’d work! Thanks, Jody!

In reality, though, I think I’ll still wait until it’s a property, if ever. Setting html for every header of every table just isn’t worth it.

Still and all, not a big deal. Nice to know now how I can do it if I really need to, though. ![:)]( "Smile")

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [December 7, 2004, 6:35pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/10 "2004-12-07T18:35:23Z")

</div>

What is wrong with setting the table with to 100%? ![:D]( "Very Happy")  
This way you anticipate ANY width.

```auto
<table bgcolor="red" width="100%">

```

---

<div class="post-metadata">

**Author:** ![jweaver](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jweaver](https://forum.servoy.com/u/jweaver)\
**Post date:** [December 7, 2004, 6:45pm UTC](https://forum.servoy.com/t/ability-to-change-table-column-heading-colors/3206/11 "2004-12-07T18:45:10Z")

</div>

I attemped to do the same thing at first. Setting table width to 100% does not work. It will in fact set to 100% of the initial column width. However, when you manually expand the column the bgcolor does not follow.
