# CSS to Change Table Width

**URL:** <https://forums.knack.com/t/css-to-change-table-width/8713>\
**Category:** API & Custom Code\
**Created:** [February 24, 2021, 4:45pm UTC](https://forums.knack.com/t/css-to-change-table-width/8713 "2021-02-24T16:45:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![DeanBozzan62116](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@DeanBozzan62116](https://forums.knack.com/u/DeanBozzan62116)\
**Post date:** [February 26, 2021, 12:52am UTC](https://forums.knack.com/t/css-to-change-table-width/8713/4 "2021-02-26T00:52:48Z")

</div>

I will throw some more in here as you start making changes you may want to center more items in the page:

/\* Center Tables and set to 80% page width \*/

.kn-contenttable{

width:80%;

margin-left:auto;

margin-right:auto;

}
  

/\* Center Menus \*/

.control {

position:relative;

text-align:center;

}
  

/\* Center headers \*/

h1, h2, h3, h4, h5, h6 {

text-align:center;

}

---

_[View the full topic](https://forums.knack.com/t/css-to-change-table-width/8713)._
