Forums

TablePress
[resolved] border on right hand side of one column only (7 posts)

  1. jenij
    Member
    Posted 4 months ago #

    I've tried this:

    .tablepress-id-1 .column-F {
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #333;
    }

    but it's not working.

    How can I fix please ?

    Thanks, Jeni

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

  2. DesignRapid.com
    Member
    Posted 4 months ago #

    try this
    .tablepress-id-1 .column-F {
    border-right: 1px solid #333!important}

  3. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi Jeni,

    thanks for your question.

    The reason for this is that column classes use numbers and not letters (so 6 instead of F).
    Also, raman's suggestion to make the CSS shorter is a good idea.
    Please try again with

    .tablepress-id-1 .column-6 {
      border-right: 1px solid #333;
    }

    If that also does not work, please post a link to the page with the table.

    Regards,
    Tobias

  4. jenij
    Member
    Posted 4 months ago #

    Thank you both. It's working perfectly now!

    Thanks for the info re the column classes - I just assumed that because the table shows the columns in letters, then the class would be the same (stupid me :) )

  5. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    sure, no problem! You are very welcome!

    The reason for this difference is that the numbers do not always match the letters on the "Edit" screen, for example when columns are hidden using the "Hide" button there.

    Best wishes,
    Tobias

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

  6. DesignRapid.com
    Member
    Posted 4 months ago #

    @tobias Bg, nice plugin, was looking for that

  7. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    thanks, that's great to hear :-)

    Best wishes,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic