• Resolved efran1526

    (@efran1526)


    Hi, I discovered this plugin last night and is doing exactly what I need. However, I’m having a space issue between the table and an image.

    In Visual Editor I have inserted the table code which displays the table but immediately after the table I need to display an image and it does display but there is a gap or space almost like padding that I don’t want or need. I would like the the last row of the table to touch the image.

    Here’s the code I have in the Visual Editor.
    <p style=”text-align: left;”>[table id=1 /]
    <img class=”alignnone wp-image-255″ src=”https://rightawaymovingservice.ca/wp/wp-content/uploads/2015/03/GetQuoteNew-300×108.png&#8221; alt=”GetQuoteNew” width=”350″ height=”126″ /></p>

    Thank you and thank you for a great plugin.

    Eric

    https://www.ads-software.com/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    From what I can see, you are using the table in a text widget on https://rightawaymovingservice.ca/wp/services-2/ to show some links underneath each other. This is not really a good use for tables, to be honest. I’d actually suggest doing this with plain HTML/CSS, but if you want to continue with this approach, this should remove the gap:

    1. Change the HTML to

    <p style="text-align: left;">[table id=1 /]<img class="alignnone wp-image-255" src="https://rightawaymovingservice.ca/wp/wp-content/uploads/2015/03/GetQuoteNew-300x108.png" alt="GetQuoteNew" width="350" height="126" /></p>

    (essentially removing the line break between the Shortcode and the image HTML.

    2. On the table’s “Edit” screen, turn off the “Print Name” and “Print Description” checkboxes.

    3. On the “Plugin Options” screen of TablePress, add this “Custom CSS”:

    .textwidget .tablepress-id-1 {
      margin: 0;
    }

    Regards,
    Tobias

    Thread Starter efran1526

    (@efran1526)

    Thank you!! It’s perfect!

    Eric

    Plugin Author TobiasBg

    (@tobiasbg)

    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 here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘space between table and image’ is closed to new replies.