# How do I change table width

**URL:** <https://forum.ghost.org/t/how-do-i-change-table-width/39705>\
**Category:** Using Ghost\
**Created:** [July 6, 2023, 9:08pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705 "2023-07-06T21:08:13Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [July 6, 2023, 9:08pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/1 "2023-07-06T21:08:13Z")

</div>

Hi all,

I’m wondering how do I change the table width in my post. The post, right now, does not show the complete table. See [here](https://prnt.sc/-6AtBZJY1wc2).

Can anyone help? I’m using the Casper theme on the Ghost(Pro) Starter plan.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [July 6, 2023, 9:17pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/2 "2023-07-06T21:17:39Z")

</div>

It’d be helpful to see the page live, not just a screenshot. :)

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [July 6, 2023, 9:19pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/3 "2023-07-06T21:19:15Z")

</div>

Hi @Cathy_Sarisky here is the [post](https://www.drdevroy.com/generalized-anxiety-disorder/) :)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [July 6, 2023, 9:32pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/4 "2023-07-06T21:32:17Z")

</div>

Hey @ROY. I’m not sure how that table was built, but it has a bunch of hard-coded styling included. The guilty party here is that your table has a style tag that says “overflow: hidden” - if you change that to “overflow: scroll”, you’ll at least be able to scroll the table for content.

That table would probably work better with negative margins to bust it out of the main content column - you might take a look at the styles applied for full-width images in that theme and copy the CSS for max-width and margins.

p.s. You’ve got a chunk of that page with multiple list indents that’s pretty broken on mobile.

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [July 6, 2023, 9:40pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/5 "2023-07-06T21:40:44Z")

</div>

Hi @Cathy_Sarisky, can you please suggest what CSS I need to include in the Code Injection section 🙏🏻

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [July 6, 2023, 9:44pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/6 "2023-07-06T21:44:22Z")

</div>

I suggest you add a full width image to the post and see what css is being applied to it (whatever outer comtainer has it - probably the `<figure>` tag. Then you’ll want to apply those same styles (particularly those for max-width, margin, and width) to your table. If you use dev tools (f12 in most browsers), you can see the css settings in use.

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [July 6, 2023, 10:56pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/7 "2023-07-06T22:56:37Z")

</div>

Thanks @Cathy_Sarisky. I inserted the tables as images, as I could not figure out the technical stuff. I wish there was an easier way.

---

<div class="post-metadata">

**Author:** ![Coolcmsc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/coolcmsc/32/24173_2.png) [@Coolcmsc](https://forum.ghost.org/u/Coolcmsc)\
**Post date:** [July 7, 2023, 12:18pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/8 "2023-07-07T12:18:24Z")

</div>

Well, it looks fine to me now and in both orientations on an iPad and an iPhone.

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [July 7, 2023, 9:19pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/9 "2023-07-07T21:19:02Z")

</div>

Thanks @Coolcmsc, yes I inserted the tables as images. I couldn’t figure out the technical stuff. I wish I could insert the table as a table though. The images, right now, look very small on mobile. Did the images expand for you when clicked?

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [July 7, 2023, 9:23pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/10 "2023-07-07T21:23:17Z")

</div>

So Roy, how are you creating the tables? What tool are you using?

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [July 7, 2023, 9:27pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/11 "2023-07-07T21:27:59Z")

</div>

Hi @Cathy_Sarisky , I created and formatted the tables using MS Word and then took a screenshot 🙈 I then inserted those images.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [July 7, 2023, 9:44pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/12 "2023-07-07T21:44:07Z")

</div>

Before you switched to images? What’d you do?

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [July 7, 2023, 10:12pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/13 "2023-07-07T22:12:22Z")

</div>

I created the html using an online tool (perhaps html school) and then inserted it as an html embed. But for some reason, the post cut off the sides of the table.

---

<div class="post-metadata">

**Author:** ![Coolcmsc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/coolcmsc/32/24173_2.png) [@Coolcmsc](https://forum.ghost.org/u/Coolcmsc)\
**Post date:** [July 9, 2023, 11:30pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/14 "2023-07-09T23:30:55Z")

</div>

Hi, had a moment to find an easy way of getting the HTML written for you for any table to be cut and paste into an HTML Card.

I used [this tool to create the following](https://www.tablesgenerator.com/html_tables) from which I’ve taken the following screenshots. I used Excel to create the table and used cut and paste from that to enter that info into the box for the table data which appears just above the “Generate” button. You can also import using the menu higher up (use File). You can even change the appearance of the table which gets included in the css (use the Theme button).

And note how the 2nd —\> 4th column titles have been treated - the columns in the original Excel sheet were all the width of each title. Conversely, the ‘questions’ in the 1st column have not been ‘wrapped’. I’m not good enough at coding to understand how that’s been achieved by this tool: accident or coded?

The second image is of a page I created on my test site using the generated code in an HTML card.

 ![IMG_3307](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/0/7/07b5ee6419531a73afccc3d1e20ee53295f9962d.jpeg)  
 ![IMG_3306](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/6/0/6041a9f680cef6cff30cc02613c4bec978e52fa1.jpeg)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [July 13, 2023, 4:32pm UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/15 "2023-07-13T16:32:26Z")

</div>

Thanks for linking that tool @Coolcmsc - looks like a better tool for the job.

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [July 14, 2023, 5:02am UTC](https://forum.ghost.org/t/how-do-i-change-table-width/39705/16 "2023-07-14T05:02:11Z")

</div>

Thanks for this @Coolcmsc. This helped me create tables easily :) I tried it but then went back to the image solution because the html tables were not being displayed properly on smaller devices.
