Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The reason for this is that they have some CSS classes applied to them (which likely is the result of choosing an alignment when adding them to the table) that make them float left or right.
    There is however no direct equivalent to make them float in the center. This can however be achieved by manually creating such an effect by setting the margins around the images. In your case, this will not work though, as you already have text in the same cell.

    Thus, can you please explain how exactly you want this to look like? I assume that you want the text to be left aligned and the images should be beneath each other in the right half of the table?

    Regards,
    Tobias

    Thread Starter trifwhosdaddy

    (@trifwhosdaddy)

    Look at the homepage. I’ve successfully made the webs4soft image to be centered by applying a div command (<DIV align=”center”>) . However, this is too much work to do for every picture independently. So i thought you maybe had an idea for some custom css code on the front end options of your plugin

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, that’s possible.

    Please try adding this to the “Custom CSS”:

    .tablepress img {
      margin: 0 auto !important;
    }

    That should center all images in table cells (except in the table “Travel with us”, as that has text and image in the same cell).

    Regards,
    Tobias

    Thread Starter trifwhosdaddy

    (@trifwhosdaddy)

    Great mate, it worked!!! I think table “Travel with us” was somewhat influenced too. Can it be excluded? No worries if it can’t

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, “Travel with us” seems to have smaller margins around the images, but that looks actually better, in my opinion.

    So, great to hear that this helped! ??

    Best wishes,
    Tobias

    Thread Starter trifwhosdaddy

    (@trifwhosdaddy)

    Ok thanks for the help

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sure, no problem! You are very welcome!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    ist4000

    (@ist4000)

    Thank you so much for the plugin, Thobias. Would you mind to add the centering issue to the faqs of the plugin?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    good idea, I should do that. Thanks for the suggestion!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Center Images Horizontally’ is closed to new replies.