• Resolved silvergs

    (@silvergs)


    I have the latest version of this plugin (1.9) and the latest version of WordPress (4.9.4)

    I’m trying to add a border to the table on this page http://prestigeautocollision.ca/services/ and have used the following CSS code, but I can’t get it to work. Any suggestions on what I’m doing wrong?

    .tablepress-id-1,
    .tablepress-id-1 tr,
    .tablepress-id-1 tbody td,
    .tablepress-id-1 thead th,
    .tablepress-id-1 tfoot th {
    border: 2px;
    border-color: black;
    }

    • This topic was modified 8 years, 5 months ago by silvergs.

    The page I need help with: [log in to see the link]

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.

    Please try this:

    .tablepress-id-1 tbody td {
        border: 1px solid #000000 !important;
    }

    Regards,
    Tobias

    Thread Starter silvergs

    (@silvergs)

    Thanks Tobias!

    That did the trick! I have one other question – is there a way to make the list bulleted in the table itself?

    Something like this https://www.w3schools.com/html/html_lists.asp – the unordered list at the top left.

    Regards,
    Hameed

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, even though a table is not a list, semantically. Still, you can add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-1 tbody td:before {
    	content: "• ";
    }

    Regards,
    Tobias

    Thread Starter silvergs

    (@silvergs)

    Thanks Tobias! Your prompt response is very much appreciated!

    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 ‘How to add border to a table’ is closed to new replies.