WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Center Image (6 posts)

  1. from ABI roger
    Member
    Posted 6 months ago #

    Hi Tobias:

    I need to center an image in a specific row of a specific table. Please advise what the css code would be, thanks!

    https://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please post a link to the page with the table where you want to do this, so that I can take a direct look? Thanks!

    Regards,
    Tobias

  3. from ABI roger
    Member
    Posted 6 months ago #

    The site isn't live yet:

    http://precision.abihosting.co/wiring-diagrams/

    It's the first row. I'd like that image to be in centered. I did remove the class code too but still no luck. I tried this:

    .tablepress-id-72 .row-1 {
    text-align: center;
    vertical-align: middle;
    }

    But alas, I need your expertise!

  4. TobiasBg
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    thanks for the link. You'll need to apply this CSS properties on the table cell (<td>):

    .tablepress-id-72 .row-1 td {
      text-align: center;
      vertical-align: middle;
    }

    Regards,
    Tobias

  5. from ABI roger
    Member
    Posted 6 months ago #

    Thx Tobias!

  6. TobiasBg
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    no problem, you are very welcome! :-) Good to hear that this helped!

    Best wishes,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.