Title: Padding in rows
Last modified: August 20, 2016

---

# Padding in rows

 *  Resolved [MargotP](https://wordpress.org/support/users/margotp/)
 * (@margotp)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/padding-in-rows/)
 * I am trying to change the height of just one row in a table. In a response to
   a previous query regarding row size you mentioned padding and that that was the
   easiest/simplest way to do it. So how do I change the padding? Thx
 * [http://wordpress.org/extend/plugins/tablepress/](http://wordpress.org/extend/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415518)
 * Hi,
 * thanks for your question.
 * Yes, usually changing padding is easier. You will want something like this:
 *     ```
       .tablepress-id-123 .row-5 td {
          padding: 2px 8px;
       }
       ```
   
 * (Just change the table ID and the row number accordingly.)
    That will reduce 
   the vertical padding and reduce the row height.
 * If that doesn’t do it, please post the link to the page with the table in question,
   and describe what you want to change in which way.
 * Thanks!
    Tobias
 *  Thread Starter [MargotP](https://wordpress.org/support/users/margotp/)
 * (@margotp)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415548)
 * Here is the link:
 * [http://www.margottago.com/gingermop/digital/](http://www.margottago.com/gingermop/digital/)
 * I’m trying to reduce the space below the arrow, which occupies one cell on the
   top row.
 * The code you gave me, I put it in Custom CSS box in the Frontend Options section.
   Is that where you put it? Still pretty green at this…
    Thx
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415550)
 * Hi,
 * thanks for the link.
 * Unfortunately, just changing the padding here is not enough, as the arrow image
   gets some “margin” by your theme, which creates this empty space.
    But that can
   be changed with some CSS, too. So, please – Remove the current “Custom CSS” (
   as that’s not sufficient here), and – Replace it with
 *     ```
       .entry-content .tablepress-id-2 {
           margin: 1em 0;
       }
       .tablepress-id-2 img {
         margin: 0;
         padding: 0;
       }
       ```
   
 * And yes, the “Custom CSS” textarea that you have found is the correct place 🙂
 * (By the way, a new version of TablePress is available, so I recommend that you
   update, which you can do directly in your WordPress admin area.)
 * Regards,
    Tobias
 *  Thread Starter [MargotP](https://wordpress.org/support/users/margotp/)
 * (@margotp)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415556)
 * Thank you so much!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415557)
 * Hi,
 * no problem, you are very welcome!
    Great to see that this worked.
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please rate TablePress here in the plugin directory.
   Thanks!
 *  [radhikashah](https://wordpress.org/support/users/radhikashah/)
 * (@radhikashah)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415739)
 * Please have a look at
 * [http://www.jtdaylilies.com/our-daylily-garden/lilies/](http://www.jtdaylilies.com/our-daylily-garden/lilies/)
 * I want to decrease the distance between the images (I think its padding)
 * I tried different custom codes of CSS from these forums but its not working.
 * Can you help me please.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415740)
 * Hi,
 * almost 🙂 It’s not padding, it’s margin. Please try this “Custom CSS”:
 *     ```
       .tablepress tbody td img {
           margin: 0 0 5px 0;
       }
       ```
   
 * Regards,
    Tobias
 *  [Talker77](https://wordpress.org/support/users/talker77/)
 * (@talker77)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415749)
 * Hello,
 * at [http://www.ferienhaus-rehsprung.de/wordpress/preise/](http://www.ferienhaus-rehsprung.de/wordpress/preise/)
   I want change padding in cells.
    Then I have between row 3 and 5 I have an empty
   row (4)…but I can´t see them…why?
 * thx for help…
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415750)
 * Hi,
 * thanks for your question and sorry for the trouble!
 * In your table, you the padding is set to `0px` (by some wrong and stupid CSS 
   in your theme). This means that there will be no space between the content of
   the cell and the edge/border of the cell.
    This means that an empty cell (or 
   row) will not be visible, because there’s no text in it and no border around 
   that. I suggest to fix that by changing the “Custom CSS”
 *     ```
       .tablepress td {
       	padding-top: 8px;
       	border: none;
       	background: none;
       	text-align: left;
       }
       ```
   
 * to
 *     ```
       .tablepress td {
       	padding: 8px !important;
       	border: none;
       	background: none;
       	text-align: left;
       }
       ```
   
 * You can then also remove all the other lines that try to change padding from 
   all the other CSS selectors.
 * Regards,
    Tobias

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

The topic ‘Padding in rows’ 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/)

 * 9 replies
 * 4 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/padding-in-rows/#post-3415750)
 * Status: resolved