# Optimised table header alignment

**URL:** <https://forums.pega.com/t/optimised-table-header-alignment/9440>\
**Category:** User Experience\
**Tags:** platform, user-experience, pega-platform\
**Created:** [May 7, 2025, 9:10am UTC](https://forums.pega.com/t/optimised-table-header-alignment/9440 "2025-05-07T09:10:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuryaG89](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@SuryaG89](https://forums.pega.com/u/SuryaG89)\
**Post date:** [May 7, 2025, 9:10am UTC](https://forums.pega.com/t/optimised-table-header-alignment/9440/1 "2025-05-07T09:10:38Z")

</div>

HI All,

For the Optimised table i want to have the header to be centered.

I have selected align column header of the cell properties of the header as center but header is not centered when i check on the UI.

If the table in not optimised or not having any filtering option, then the alignment is working fine

Attached screenshots for reference.

Thanks in advance for your help.

 ![1.png](https://pega1.discourse-cdn.com/pega/original/2X/6/60caef318bdaba9cecdfd94f490d507649e99c05.png) ![2.png](https://pega1.discourse-cdn.com/pega/original/2X/3/36a6a3c1ffd68038aa5cd0d7ad06877a76dff839.png)

---

<div class="post-metadata">

**Author:** ![im-ankit](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/im-ankit/32/3147_2.png) [@im-ankit](https://forums.pega.com/u/im-ankit)\
**Post date:** [May 7, 2025, 12:12pm UTC](https://forums.pega.com/t/optimised-table-header-alignment/9440/2 "2025-05-07T12:12:53Z")

</div>

Hi @SuryaG89,

Can you try below configuration on label control.

 ![Centered Label.png](https://pega1.discourse-cdn.com/pega/original/2X/0/01ccbd6e98eb7443e52abcec5547d72c9b83291e.png)

Thanks, Ankit

---

<div class="post-metadata">

**Author:** ![SuryaG89](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@SuryaG89](https://forums.pega.com/u/SuryaG89)\
**Post date:** [May 7, 2025, 12:27pm UTC](https://forums.pega.com/t/optimised-table-header-alignment/9440/3 "2025-05-07T12:27:52Z")

</div>

@im-ankithave already tried this but no luck

---

<div class="post-metadata">

**Author:** ![SuryaG89](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@SuryaG89](https://forums.pega.com/u/SuryaG89)\
**Post date:** [May 26, 2025, 10:35am UTC](https://forums.pega.com/t/optimised-table-header-alignment/9440/4 "2025-05-26T10:35:54Z")

</div>

@SuryaG89

Added the custom logic to center the table headers along the column alignment to left and below logic in UserWorkForm.

```auto
<style>

.gridHeaderLabel.flex-justify-center {

    padding-left: 0px !important;

    text-align: center;

}

 

</style>

```
