# Center Table Column Headers

**URL:** <https://forums.knack.com/t/center-table-column-headers/12740>\
**Category:** Feature Requests\
**Created:** [June 30, 2022, 1:40pm UTC](https://forums.knack.com/t/center-table-column-headers/12740 "2022-06-30T13:40:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GaryStark10384](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@GaryStark10384](https://forums.knack.com/u/GaryStark10384)\
**Post date:** [June 30, 2022, 1:40pm UTC](https://forums.knack.com/t/center-table-column-headers/12740/1 "2022-06-30T13:40:41Z")

</div>

For some reason when I apply either of the following CSS code options (found on Knack’s suggested code page) it doesn’t center my column headers in my target table. Anyone have any suggestions?

/\* Change #view\_# to the view key of the table you’d like to center the column headers for._/  
/_ Use for all themes except for the Knack Standard Theme _/  
 #view\_# th  
{  
text-align: center;  
}  
/_ Use for the Knack Standard Theme \*/  
#view\_# th span  
{  
margin: auto !important;  
}
