WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Keeping Image and Text Border in individual cells (6 posts)

  1. Shirley Muswema
    Member
    Posted 9 months ago #

    Hi Tobias,

    First, thanks for a great plugin.

    Second, I really need your help. I am trying to edit a table to display like so:

    http://screencast.com/t/piouk7aal1N or http://funchkins.travel/kruger/blog/eating-out/

    but the table I am editing, currently looks like this:

    http://screencast.com/t/A9jqcPlNd5 or http://www.funchkins.com/capetown/

    As you can see the difference is a faint border in the cell around the image and the text underneath it. I currently have the following CSS to remove the table borders:

    '.tablepress-id-id,
    .tablepress-id-id tr,
    .tablepress-id-id tbody td,
    .tablepress-id-id thead th,
    .tablepress-id-id tfoot th {
    border: none;
    }

    .tablepress-id-id th,
    .tablepress-id-id td {
    padding: 2px;
    font-size: 11px;
    }'

    Can you help me get the border around the image in the cell and the text under neath it?

    Thanks for your help.

    Shirley.

    http://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,

    thanks for your question, and sorry for the trouble.

    That border is around the attachment container <div> elements in the cells. Some CSS like this should help:

    .tablepress-id-16 .aligncenter {
      border: 1px solid #888888;
    }
    .tablepress-id-16 .aligncenter img {
        margin: 4px;
    }

    Regards,
    Tobias

  3. Shirley Muswema
    Member
    Posted 9 months ago #

    Thanks for that Tobias, it worked brilliantly.

    I tried taking the table that wasn't displaying properly to the website with the correct tables and it displayed correctly. Could there be a reason it didn't display properly originally? Maybe a setting of the site itself?

  4. TobiasBg
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,

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

    The reason why the borders didn't show is simply that they are defined by the theme. They are part of the theme on the "old" site, but not part of the theme on the "new" site.

    Best wishes,
    Tobias

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

  5. Shirley Muswema
    Member
    Posted 9 months ago #

    hmm, that actually makes sense. Thank you so much for your help. Have a great day :)

  6. TobiasBg
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,

    always glad when I can help! :-)

    Regards,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic