Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Normally, something like

    .tablepress td {
      border: 1px solid #cccccc !important;
    }

    should add a top border to every row.

    Regards,
    Tobias

    Thread Starter raltok

    (@raltok)

    Hey Tobias,

    Thanks for the reply.

    I’m using a 5 row x 2 column table. I would like to add a black solid border to the top and button of the table (there are no borders for columns, and I’m using a light grey, thinner border for inner rows). Hope that’s clearer. Thanks for your help!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

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

    Regards,
    Tobias

    Thread Starter raltok

    (@raltok)

    It is not a problem, we would just like the code to add a top border to the top row if that’s possible.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    maybe something like

    .tablepress {
      border-top: 1px solid #000000 !important;
      border-bottom: 1px solid #000000 !important;
    }

    then.

    Regards,
    Tobias

    Thread Starter raltok

    (@raltok)

    Hey Tobias,

    Thanks a lot for this, it works. How can I decrease the height of the rows, and also make the top and button border a bit ticker?

    Thank you

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    maybe try

    .tablepress {
      border-top: 3px solid #000000 !important;
      border-bottom: 3px solid #000000 !important;
    }

    for a thicker border.

    To reduce the height, try

    .tablepress th,
    .tablepress td {
      padding: 6px !important;
    }

    Regards,
    Tobias

    Thread Starter raltok

    (@raltok)

    Works! Thanks 🙂

    Plugin Author Tobias Bäthge

    (@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 9 replies - 1 through 9 (of 9 total)

The topic ‘Custom CSS’ is closed to new replies.