# Alignment of column headings (Table view)

**URL:** https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575
**Category:** Classic Servoy
**Created:** [May 28, 2007, 11:11pm UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575 "2007-05-28T23:11:52Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![wvitpr](https://avatars.discourse-cdn.com/v4/letter/w/e0b2c6/32.png) [@wvitpr](https://forum.servoy.com/u/wvitpr)
#### Post date: [May 28, 2007, 11:11pm UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/1 "2007-05-28T23:11:52Z")

</div>

Hi,  
Is it possible to justify column headings to the left in table view instead of the default centre??

---

<div class="post-metadata">

### Author: ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)
#### Post date: [May 29, 2007, 4:49am UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/2 "2007-05-29T04:49:28Z")

</div>

Not to my knowledge…

---

<div class="post-metadata">

### Author: ![wvitpr](https://avatars.discourse-cdn.com/v4/letter/w/e0b2c6/32.png) [@wvitpr](https://forum.servoy.com/u/wvitpr)
#### Post date: [May 29, 2007, 4:51am UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/3 "2007-05-29T04:51:19Z")

</div>

Thanks Marcel

---

<div class="post-metadata">

### Author: ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)
#### Post date: [May 29, 2007, 7:11am UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/4 "2007-05-29T07:11:56Z")

</div>

You could fiddle with HTML inside the header.

Paul

---

<div class="post-metadata">

### Author: ![wvitpr](https://avatars.discourse-cdn.com/v4/letter/w/e0b2c6/32.png) [@wvitpr](https://forum.servoy.com/u/wvitpr)
#### Post date: [May 29, 2007, 8:06am UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/5 "2007-05-29T08:06:55Z")

</div>

Hi Paul,  
I just tried the following HTML code

```auto
<html>
 <head>

 </head>
 <body>
   <p align="left">
     <b>Company Name</b>
   </p>
 </body
</html>

```

It works fine in the Property Editor text tab but not as a column header on the solution, maybe the code is wrong??

---

<div class="post-metadata">

### Author: ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)
#### Post date: [May 29, 2007, 8:34am UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/6 "2007-05-29T08:34:50Z")

</div>

Unfortunally, it’s not foolproof, but:  
"

| your text |

"

Works in the Smart client. This has undesired effects in the WebClient. That will be looked at, to see if that can be improved.

Paul

---

<div class="post-metadata">

### Author: ![wvitpr](https://avatars.discourse-cdn.com/v4/letter/w/e0b2c6/32.png) [@wvitpr](https://forum.servoy.com/u/wvitpr)
#### Post date: [May 29, 2007, 10:09am UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/7 "2007-05-29T10:09:49Z")

</div>

That did it,  
Many Thanks Paul, should I be able to copy/paste in the html editor??

---

<div class="post-metadata">

### Author: ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)
#### Post date: [May 29, 2007, 10:54am UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/8 "2007-05-29T10:54:35Z")

</div>

Yes, copy and Paste should work

---

<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: [May 29, 2007, 10:58am UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/9 "2007-05-29T10:58:31Z")

</div>

> I haven’t tested this but should the following html be better as it should work for any size column?
> 
> ```auto
> <table width="100%">
> 
> ```
> 
> Hope this helps.

---

<div class="post-metadata">

### Author: ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)
#### Post date: [May 29, 2007, 11:03am UTC](https://forum.servoy.com/t/alignment-of-column-headings-table-view/7575/10 "2007-05-29T11:03:12Z")

</div>

If Java would have implemented the HTML specs properly, that would be better. Unfortunally, HTML inside Java has it’s limitation…

In other words, width=“100%” doesn’t work. Maybe there are other ways of achieving the same result in HTMl that do work. At least, the HTML code i gave does work.

Paul
