• Resolved julianrypalla

    (@julianrypalla)


    Hey Tobias, I enjoy your plugin very much, thanks for that πŸ™‚
    I’m just going to get straight to the problem:
    On my Sidebar I have an Image inside of a little 1×3 table on the first row. Now, I want to center that image. How is that possible? I have already tried adding customm css:

    .tablepress-id-22 .row-1 img {
    	margin: 0 auto !important;
    }

    but that didn’t work for some reason. Not sure why…
    Thanks for any help!

    PS: You can see the side here:
    http://schlauchboote-kaufen.com/

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The image is displayed “inline” (like text), so that we’ll just have to center the content of the cell in this case:

    .tablepress-id-22 .row-1 td {
      text-align: center;
    }

    Regards,
    Tobias

    Thread Starter julianrypalla

    (@julianrypalla)

    Thank you so very much πŸ™‚

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! πŸ™‚ Good to hear that this helped!

    Best wishes,
    Tobias

    Hi Tobias, thank you for your great plugin and support!

    I have a simple table with 1 column, 3 rows. 1st row is title, 2nd is an image and 3rd some text. I would like to center the title and the image. I tried

    .tablepress-id-8 thead th,
    .tablepress-id-8 .row-2 td {
    text-align: center;
    }
    but the image wouldn’t center.
    Could you please help me?

    Thanks in advance!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    this is usually caused by the theme setting a different “display” property for images.
    Please try adding this as well:

    .tablepress-id-8 img {
      display: inline;
    }

    Regards,
    Tobias

    Solved! Wonderful! thanks Tobias!!

    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 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Centering an Image on Sidebar’ is closed to new replies.