Title: Space and padding
Last modified: August 21, 2016

---

# Space and padding

 *  Resolved [michaeljb](https://wordpress.org/support/users/michaeljb/)
 * (@michaeljb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/)
 * Hi i am trying to create a nice formatted table like this sites [http://elora.info/where-to-shop/](http://elora.info/where-to-shop/)
   as you can see the images all have a nice grey box around them and all have titles.
   This is whati have so far [http://www.wellington.pecon.ca/business-directory/wellington-community/](http://www.wellington.pecon.ca/business-directory/wellington-community/)
   
   i dont have boxes around the images and my titles under each image have too much
   space between the image and the titles. I have search the support forum and tried
   a few things but i cannot add boxes or close the title gap.
 * please help.
 * _[Moderator Note: Please ensure that you are embedding links correctly in your
   posts.]_
 * [http://wordpress.org/plugins/tablepress/](http://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378688)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * From what I can see, the images on the page in the first link all have a box-
   shadow via CSS. You should look into adding one to your images as well.
    Unfortunately,
   I’m not really sure where the best place for that would be, as the overlay plugin
   that you are using in the table cells seems to require custom styling for that.
 * As a side note: You seem to be using the table just to achieve that grid layout.
   That’s actually not how tables should be used in modern web design. Instead of
   using TablePress, you should look into using a grid plugin or maybe some custom
   HTML based on `<div>` elements. Not only will that give you a more modern and
   correct semantic HTML structure, but it will also be easier to style, e.g. for
   responsive layouts.
 * Regards,
    Tobias
 *  Thread Starter [michaeljb](https://wordpress.org/support/users/michaeljb/)
 * (@michaeljb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378697)
 * thanks for the advise Tobias, can you at least let me know how to reduce the 
   space between the bottom of the image and the image title?
 * thanks
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378708)
 * Hi,
 * from what I can see, that space is coming from some `<p>` tags in the code for
   the overlay.
    Please try adding this to the “Custom CSS” to remove the space:
 *     ```
       .tablepress-id-3 p {
         margin: 0;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [michaeljb](https://wordpress.org/support/users/michaeljb/)
 * (@michaeljb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378736)
 * no, that didn’t work. It seems to look great when you refresh the page but then
   after a second or 2 it jumps back to how it was with the large space
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378740)
 * Hi,
 * I don’t see that code in the “Custom CSS”. Are you sure that you pasted it in
   there and saved the changes?
 * Regards,
    Tobias
 *  Thread Starter [michaeljb](https://wordpress.org/support/users/michaeljb/)
 * (@michaeljb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378742)
 * sorry, i removed it, its in there now if you want to take another look
 *  Thread Starter [michaeljb](https://wordpress.org/support/users/michaeljb/)
 * (@michaeljb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378744)
 * if you look at the st andrews image, i added a border to it and it seems to crop
   the bottom off, i even made it smaller to see if that fixed it but it still crops
   the bottom off, any ideas?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378751)
 * Hi,
 * for me, the spacing change works fine, both in Chrome and in Firefox.
 * That St. Andrews image issue is indeed weird. I’m not sure what causes that, 
   and I can’t spot anything wrong there, right now. It doesn’t seem to be related
   to you adding the border though. It something in that overlay script, I would
   guess.
 * Regards,
    Tobias
 *  Thread Starter [michaeljb](https://wordpress.org/support/users/michaeljb/)
 * (@michaeljb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378754)
 * ok thanks for you help Tobias
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378765)
 * Hi,
 * no problem, you are very welcome! 🙂 Sorry that I couldn’t help with all details.
 * Best wishes,
    Tobias
 *  Thread Starter [michaeljb](https://wordpress.org/support/users/michaeljb/)
 * (@michaeljb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378772)
 * i fixed it..
 * it was some other tablepress code above the code that you asked me to add. i 
   removed this and bingo 🙂
 * thanks for your help
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378790)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that you were able to fix the
   problem 🙂
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](http://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘Space and 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/)

 * 12 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/space-and-padding/#post-4378790)
 * Status: resolved