• Resolved planetchristmas

    (@planetchristmas)


    Great plugin!

    I found the .css edition to center all text in a particular column.

    .wp-table-reloaded-id-1 .column-2 {
    text-align: center!important;
    vertical-align: middle!important;
    }

    Stumped on trying to center all images in a column.

    Goal is to center images so there’s equal space on each side of it in all cells of a column.

    I keep thinking this should really be easy. Any suggestions???

    https://www.ads-software.com/extend/plugins/wp-table-reloaded/

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

    (@tobiasbg)

    Hi,

    centering images is a little bit more tricky, as those are “block” elements.

    For images, this usually works, but to be sure, it would be good if you can post the URL to your table.

    .wp-table-reloaded-id-1 img {
      margin: 0 auto !important;
    }

    Regards,
    Tobias

    Hi I am having the same problem.

    Here is a link to the page: https://www.bluecoreheatsinks.com/products/to-xxx-stamped-heatsinks

    I have tried many different css styles from your support forum but non that work. Currently I have:

    ‘.wp-table-reloaded-id-2 td { text-align: center; !important; } .wp-table-reloaded-id-2 img { margin: 0 auto !important; }’

    But I don’t think its doing much. I’d like the text an damages centred please.

    Hope you can help

    Many thanks

    Kim

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Kim,

    where did you enter that CSS code? I don’t see it anywhere in the source code of the page…

    It needs to go into the “Custom CSS” textarea on the “Plugin Options” screen of WP-Table Reloaded.

    Regards,
    Tobias

    Hi Tobias,

    That’s where I entered it in “Extra CSS Class” in the table styling options.

    Is that correct?

    Kim

    hi kimberleyjane,

    change this code

    /wp-content/plugins/wp-table-reloaded/css/plugin.css

    line no:7

    .wp-table-reloaded {
    border-collapse: separate;
    border-spacing: 1px;
    font-size: 8pt;
    text-align: center;
    }

    Thankyou so much this works perfectly. next question of course is how do I centre the whole table. It seems wrapping the code in div tags doesn’t work.

    Thanks again
    Kim

    what?
    give your skype id.
    then i sovle all quetion of u.

    now remove your id

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Kimberley,

    no, the “Extra CSS class” field is not the correct place. The code needs to go into the “Custom CSS” textarea on the “Plugin Options” screen.

    Also, please do not modify the plugin’s CSS files directly, as mukesh27 wrongly suggests! You will lose those modifications when the plugin is updated (due to the way how WordPress plugin updates work). Instead, paste the code into the mentioned “Custom CSS” textarea.

    About centering the table: That’s possible with this CSS code:

    .wp-table-reloaded-id-2 {
      margin: 10px auto 15px auto !important;
    }

    Best wishes,
    Tobias

    Hi Tobias.

    All working!! How do I add vertical centre though so that the text sits in the centre of the row?

    Many thanks

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @mukesh27? It might be beneficial to everyone if you share the solution to problems here.

    tl;dr Like email addresses, can you please not ask for Skype IDs in these forums?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Kimberley,

    to center the cell content vertically, you can use this CSS code:

    .wp-table-reloaded-id-2 th,
    .wp-table-reloaded-id-2 td {
      vertical-align: middle !important;
    }

    Regards,
    Tobias

    how remove my post that i write above,
    give reply i delete it

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    No need, it’s all good. ??

    Just please refrain from asking for other people’s Skype id. By sharing the solutions to these problem here you’ll be helping many more people and other volunteers.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, that is indeed better. If you keep discussions here, we can later link to this thread, if someone experiences the same problem.

    Best wishes,
    Tobias

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Plugin: WP-Table Reloaded] center images in column’ is closed to new replies.