# thead not aligned with tbody in scrollable table

**URL:** https://forum.servoy.com/t/thead-not-aligned-with-tbody-in-scrollable-table/16248
**Category:** Classic Servoy
**Created:** [July 23, 2012, 1:56pm UTC](https://forum.servoy.com/t/thead-not-aligned-with-tbody-in-scrollable-table/16248 "2012-07-23T13:56:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wouter](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@wouter](https://forum.servoy.com/u/wouter)
#### Post date: [July 23, 2012, 1:56pm UTC](https://forum.servoy.com/t/thead-not-aligned-with-tbody-in-scrollable-table/16248/1 "2012-07-23T13:56:22Z")

</div>

Hi,

We are seeing a problem with scrollable tables with headers. The problem is that the headers are not aligned with the contents. The problem only occurs when you have “APP\_UI\_PROPERTY.TABLEVIEW\_WC\_DEFAULT\_SCROLLABLE” set to true, and of course when you have a table view with headers.

A simplified css way to solve this would be to wrap both thead and tbody cells in a DIV and give that a fixed width. E.g.

```auto
<thead>
<tr>
<th><div style="width: XX">title here</div></th>
</tr>
</thead>
<tbody>
<tr>
<td><div style="widht: XX">contents here</div></td>
</tr>
</tbody>

```

But that is not the way the html is structured in Servoy. Is there a way to fix the display in the current version?

 ![](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/7/7410386a4c6bd83638db7b413b82ea91cfa5ddd6.jpeg)

---

<div class="post-metadata">

### Author: ![Gabi\_Boros](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@Gabi\_Boros](https://forum.servoy.com/u/Gabi_Boros)
#### Post date: [August 2, 2012, 11:31am UTC](https://forum.servoy.com/t/thead-not-aligned-with-tbody-in-scrollable-table/16248/2 "2012-08-02T11:31:57Z")

</div>

we already fixed this for the next 6.1.1 release
