WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Cannot Remove borders (8 posts)

  1. manuelhopeman
    Member
    Posted 1 year ago #

    Hi,

    im using a table within a table. However i cannot remove the borders of the inner table. My "Custom-CSS" field :

    #content .tablepress-id-2,
    #content .tablepress-id-2 tr,
    #content .tablepress-id-2 tbody td,
    #content .tablepress-id-2 thead th,
    #content .tablepress-id-2 tfoot th {
    border: none;
    }

    Where 2 is the ID of the inner table
    Neither does with or without #content change anything. See an example:
    http://www.jo-coaching.de/testseite/ (at the bottom you can see the inner table)
    What am I doing wrong?

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    In your case, the theme does not use #content as the main container, but #main.
    So, please try again with this "Custom CSS":

    #main .tablepress-id-2,
    #main .tablepress-id-2 tr,
    #main .tablepress-id-2 tbody td,
    #main .tablepress-id-2 thead th,
    #main .tablepress-id-2 tfoot th {
      border: none;
    }

    Regards,
    Tobias

  3. manuelhopeman
    Member
    Posted 1 year ago #

    Thank you. It works now :)

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    awesome! Great to hear that this did it :-)

    Best wishes,
    Tobias

  5. ali-at-halo
    Member
    Posted 1 year ago #

    Hi Tobias,

    Sorry to hijack this thread! I've tried the code on your FAQ section, as well as adding the #content and #main options, but still not helping?

    I have a few tables on my website, here are two of them -

    http://www.yourlicence.com.au/
    http://www.yourlicence.com.au/training-courses/rigging-module/

    There weren't any borders until recently when someone updated all of our plugins.. I'm using Theme Gallery's Spartan theme..

    Any help would be appreciated! :)

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your question, and sorry for the late answer. As I was on vacation, I didn't have a chance to reply earlier.

    From what I can see, you were already able to remove the borders from the tables, is that correct?

    Regards,
    Tobias

  7. Troklop
    Member
    Posted 10 months ago #

    Hi,

    How to remove all borders around table?

    see link: http://imageupload.co.uk/files/qrj4bm26ftje5bycjid4.jpg

    Regards,
    Robert

  8. TobiasBg
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Robert,

    you'll need to add the table ID to the code, and due to how your theme adds the border also use the !important keyword:

    .tablepress-id-1,
    .tablepress-id-1 tr,
    .tablepress-id-1 tbody td,
    .tablepress-id-1 thead th,
    .tablepress-id-1 tfoot th {
    	border: none !important;
    }

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic