Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    This can be done with CSS code. For removing the borders, there’s an example in the TablePress FAQ at https://tablepress.org/faq/remove-borders-from-a-table/
    Changing the color would work in a similar way, by setting a border specification, like

    border: 1px solid #ff0000;

    For the padding, you could use e.g.

    body .main-content .tablepress th,
    body .main-content .tablepress td {
      padding: 6px;
    }

    (Unfortunately, the CSS selectors need to be a bit longer in your case, as there is some interfering CSS in your theme.)

    Regards,
    Tobias

    Thread Starter ecdj

    (@ecdj)

    Any idea what my CSS selectors would be?

    something like this?:
    .tablepress tbody tr:first-child td

    Thanks!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you should be fine by prepending that extra body .main-content as in the example.
    Otherwise, you also append the !important keyword to the CSS property declaration, like

    .tablepress tbody tr:first-child td {
      color: #ff0000 !important;
    }

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing color of border’ is closed to new replies.