• Resolved ltamm

    (@ltamm)


    Could you help with the code for removing borders for a specific table?
    I don’t want it to be a default setting.
    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    For this, you could use “Custom CSS” code, like this on the “Plugin Options” screen:

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

    Just change the table ID as necessary.

    Regards,
    Tobias

    Thread Starter ltamm

    (@ltamm)

    Thanks a lot. Is it possible to remove the outer border ass well? See https://wordpress.westiealliansen.se/resultat/.

    Another question: If I format say row x and then insert a new row, do I have to change the number of the already formatted row in the CSS panel?

    Regards
    Lena

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Lena,

    please try changing the line
    border: none;
    to
    border: none !important;

    And yes, if you insert rows, the CSS for rows below the new one has to be adjusted.
    You should therefore maybe check if the desired styling changes can be achieved with HTML code (e.g. <strong>test</strong> to make text bold) or via the <span> method that is mentioned in https://tablepress.org/faq/highlight-cells-or-content/

    Regards,
    Tobias

    Thread Starter ltamm

    (@ltamm)

    All borders gone! Perfect.

    I’ll look into your second answer.

    Thanks again for all your help!

    Lena

    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 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing borders for a specific table’ is closed to new replies.