WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Cannot Remove borders

[Resolved] Cannot Remove borders

  • manuelhopeman
    Member

    @manuelhopeman

    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/

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

    @tobiasbg

    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

    manuelhopeman
    Member

    @manuelhopeman

    Thank you. It works now 🙂

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi,

    awesome! Great to hear that this did it 🙂

    Best wishes,
    Tobias

    ali-at-halo
    Member

    @ali-at-halo

    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! 🙂

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    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

    Troklop
    Member

    @troklop

    Hi,

    How to remove all borders around table?

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

    Regards,
    Robert

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Cannot Remove borders’ is closed to new replies.