Title: TablePress cell padding
Last modified: August 24, 2016

---

# TablePress cell padding

 *  Resolved [timwarner1969](https://wordpress.org/support/users/timwarner1969/)
 * (@timwarner1969)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/tablepress-cell-padding/)
 * Hi,
 * I’ve created a table at
 * [http://www.st-lukes.leics.sch.uk/test/](http://www.st-lukes.leics.sch.uk/test/)
 * but cannot work out how to apply either css or html to it to put some padding
   on all the cells, across the whole table. Nothing I do seems to work. I’ve tried
   to follow the instructions on your guide & apply changes to the PlugIns Options
   tab, but without success. Please help.
 * Thanks in advance!
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/tablepress-cell-padding/#post-5960018)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * The reason for this is some CSS related to a calendar (either in your theme or
   another plugin) that is written in a very bad way. To fix this in TablePress 
   tables, please try adding this to the “Custom CSS”:
 *     ```
       .tablepress th {
         padding: 6px 20px 6px 6px !important;
       }
       .tablepress td {
         padding: 6px !important;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [timwarner1969](https://wordpress.org/support/users/timwarner1969/)
 * (@timwarner1969)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/tablepress-cell-padding/#post-5960046)
 * Fantastic! Works a treat! Thanks very much 🙂
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/tablepress-cell-padding/#post-5960082)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!
 *  [pete10uk](https://wordpress.org/support/users/pete10uk/)
 * (@pete10uk)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/tablepress-cell-padding/#post-5960185)
 * Hi Tobias
 * I’ve been having issues with padding / widths, nothing I seem to try following
   the FAQ’s on the subject affects the tables at all. I have applied this code 
   above with 50px in everything and the tables change but I’m not sure what the“
   th” & “td” relate to and what attribute the px affect. I’m basically trying to
   stop all my tables from going on to 2 lines per row including the title row. 
   Can you explain? In an ideal world I would like all my tables to centre the cell
   contents and auto size the widths to the largest content. Is there a better way
   to achieve this? [Link](http://test.mychiptime.co.uk/events-resultswebbington-hotel-duathlon-3-html)
 *  [pete10uk](https://wordpress.org/support/users/pete10uk/)
 * (@pete10uk)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/tablepress-cell-padding/#post-5960188)
 * Update, I sorted this by looking through older support requests.
 * “th” = Table Header
    “td’ = Table Data?
 * My Solution which is working for me
 * .tablepress th,
    .tablepress td { text-align: center; }
 * .tablepress th,
    .tablepress td { vertical-align: middle; }
 * .tablepress th,
    .tablepress td { white-space: nowrap; }
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/tablepress-cell-padding/#post-5960189)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Great to hear that you already found this! Yes, your interpretation is correct.
 * If you wanted, you could merge this CSS together some more:
 *     ```
       .tablepress th,
       .tablepress td {
         text-align: center;
         vertical-align: middle;
         white-space: nowrap;
       }
       ```
   
 * Regards,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘TablePress cell padding’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/tablepress-cell-padding/#post-5960189)
 * Status: resolved