• Resolved jezkerw

    (@jezkerw)


    Hi,

    I have this 1px line that runs across the whole table which I cannot identify in the css code or using the inspect tool. It is driving me mad. Is it possible you can help me identify what it is? Not sure if it’s actually in the css code or something with the plugin settings or something?

    Cannot share the website url here.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jezkerw

    (@jezkerw)

    Ok found it in the inspector but can’t find where to edit it:

    .tablepress > * + tbody > * > *, .tablepress > tbody >

    border-top: 1px solid var(–border-color);

    • This reply was modified 1 year ago by jezkerw.
    Thread Starter jezkerw

    (@jezkerw)

    Ok, it was in the default.css in the plugin. Do you know why this is happening?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    Indeed, this is likely coming from the default horizontal border that TablePress adds.

    However, to remove that, please do not edit the TablePress CSS files! You would otherwise have to repeat this after every TablePress plugin update! Instead, please try this approach: https://tablepress.org/faq/remove-borders-from-a-table/

    Regards,
    Tobias

    Thread Starter jezkerw

    (@jezkerw)

    Hi Tobias,

    No trouble at all. Love your plugin 🙂

    So all I have to do is to add that code with the table ID in the options filed? 🙂

    Or I could add it in the child theme too? I added this to child theme and it seemed to work:

    .tablepress>+tbody>>,.tablepress>tbody>~>,.tablepress>tfoot>>{border-top:0px solid var(–border-color) !important}

    • This reply was modified 1 year ago by jezkerw.
    • This reply was modified 1 year ago by jezkerw.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, adding the CSS code to the “Plugin Options” screen or a child theme will normally work.

    But your code also works totally fine, so just keep that 🙂

    I just wanted to warn you to not directly edit the plugin’s CSS files, as that will lead to problems and extra work in the future.

    Best wishes,
    Tobias

    Thread Starter jezkerw

    (@jezkerw)

    Appreciate your kind help Tobias 🙂

    • This reply was modified 1 year ago by jezkerw.
    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 in the plugin directory. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘1px line below table’ is closed to new replies.