# CSS Settings / Code

**URL:** <https://forums.knack.com/t/css-settings-code/15936>\
**Category:** Ask the Community\
**Created:** [March 28, 2024, 4:55pm UTC](https://forums.knack.com/t/css-settings-code/15936 "2024-03-28T16:55:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Red\_Stone](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Red\_Stone](https://forums.knack.com/u/Red_Stone)\
**Post date:** [March 28, 2024, 4:55pm UTC](https://forums.knack.com/t/css-settings-code/15936/1 "2024-03-28T16:55:50Z")

</div>

Hello Team,

I would like to know about the CSS Code i need to update so that the Tables Header, Table Content are all center justified.

---

<div class="post-metadata">

**Author:** ![Les](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/les/32/4243_2.png) [@Les](https://forums.knack.com/u/Les)\
**Post date:** [March 28, 2024, 6:50pm UTC](https://forums.knack.com/t/css-settings-code/15936/2 "2024-03-28T18:50:51Z")

</div>

Hi @Red_Stone,

For centering the column headers of your grid view, in our developer docs we have sample code that can be used to accomplish that: [CSS Examples](https://docs.knack.com/docs/css-examples#center-table-column-headers)

As for centering the grid view’s content, I was able to find a thread where a developer kindly shared their CSS code sample for centering grids and setting the page width: [CSS to Change Table Width - #4 by DeanBozzan62116](https://forums.knack.com/t/css-to-change-table-width/8713/4) It may be worth reaching out there in the thread if that sample code doesn’t accomplish what you would like and see if others can help out.

I hope this helps! Thank you for sharing your question 🙂

---

<div class="post-metadata">

**Author:** ![Red\_Stone](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Red\_Stone](https://forums.knack.com/u/Red_Stone)\
**Post date:** [March 29, 2024, 2:35pm UTC](https://forums.knack.com/t/css-settings-code/15936/3 "2024-03-29T14:35:06Z")

</div>

Hello,

I am looking into this; I will email you back for any further help.

---

<div class="post-metadata">

**Author:** ![Red\_Stone](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Red\_Stone](https://forums.knack.com/u/Red_Stone)\
**Post date:** [April 2, 2024, 10:54am UTC](https://forums.knack.com/t/css-settings-code/15936/4 "2024-04-02T10:54:30Z")

</div>

Hello,

I updated the code and few of the table headers are still not “Center” align.

 ![](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/4/444edc40bb030390d9bc995b821dee6749f9f8fa.png)

 ![](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/0/0828c6d08532b5c06a70dfbc290628c61681c2db.png)

 ![](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/8/8269ac7d18d55683e15410e6ce8f583dc00e6d46.png)

---

<div class="post-metadata">

**Author:** ![Les](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/les/32/4243_2.png) [@Les](https://forums.knack.com/u/Les)\
**Post date:** [April 2, 2024, 1:44pm UTC](https://forums.knack.com/t/css-settings-code/15936/5 "2024-04-02T13:44:59Z")

</div>

Hi @Red_Stone,

Please reach out to our support team for further assistance using the CSS provided in our developer docs. You can reach them via this form here:

> **[Knowledge Base](https://learn.knack.com/article/kb-tickets/new)**
>
> Knowledge Base

Thank you!

---

<div class="post-metadata">

**Author:** ![Red\_Stone](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Red\_Stone](https://forums.knack.com/u/Red_Stone)\
**Post date:** [April 2, 2024, 1:56pm UTC](https://forums.knack.com/t/css-settings-code/15936/6 "2024-04-02T13:56:23Z")

</div>

Thank you, Our team here helped me sort out this issue.
