Title: Cannot Remove borders
Last modified: August 20, 2016

---

# Cannot Remove borders

 *  Resolved [manuelhopeman](https://wordpress.org/support/users/manuelhopeman/)
 * (@manuelhopeman)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/cannot-remove-borders/)
 * 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/](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/](http://wordpress.org/extend/plugins/tablepress/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/cannot-remove-borders/#post-3571349)
 * 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
 *  Thread Starter [manuelhopeman](https://wordpress.org/support/users/manuelhopeman/)
 * (@manuelhopeman)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/cannot-remove-borders/#post-3571353)
 * Thank you. It works now 🙂
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/cannot-remove-borders/#post-3571356)
 * Hi,
 * awesome! Great to hear that this did it 🙂
 * Best wishes,
    Tobias
 *  [ali-at-halo](https://wordpress.org/support/users/ali-at-halo/)
 * (@ali-at-halo)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/cannot-remove-borders/#post-3571576)
 * 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/)
    [http://www.yourlicence.com.au/training-courses/rigging-module/](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 [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cannot-remove-borders/#post-3571578)
 * 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](https://wordpress.org/support/users/troklop/)
 * (@troklop)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/cannot-remove-borders/#post-3571584)
 * Hi,
 * How to remove all borders around table?
 * see link: [http://imageupload.co.uk/files/qrj4bm26ftje5bycjid4.jpg](http://imageupload.co.uk/files/qrj4bm26ftje5bycjid4.jpg)
 * Regards,
    Robert
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/cannot-remove-borders/#post-3571585)
 * 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 ‘Cannot Remove borders’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [border](https://wordpress.org/support/topic-tag/border/)
 * [lines](https://wordpress.org/support/topic-tag/lines/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 7 replies
 * 4 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/cannot-remove-borders/#post-3571585)
 * Status: resolved