Title: One code for all tables
Last modified: August 22, 2016

---

# One code for all tables

 *  Resolved [Afsori](https://wordpress.org/support/users/afsori/)
 * (@afsori)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/one-code-for-all-tables/)
 * Hi and many thanks for this great plugin,
 * I’m new in wordpress and I read FAQ and other pages but I couldn’t understand
   many things, my question is how can I use this code for all tables? I don’t want
   to paste it for all tables one by one, one for all,
 *     ```
       .tablepress-id-1,
       .tablepress-id-1 tr,
       .tablepress-id-1 tbody td,
       .tablepress-id-1 thead th,
       .tablepress-id-1 tfoot th {
       	border: 2px solid #000000;
       }
   
       .
       .
       .
       ```
   
 * Many thanks
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/one-code-for-all-tables/#post-5656564)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Just remove the ID-based part from the selector, as described in the TablePress
   Documentation at [http://tablepress.org/faq/documentation-css-selectors-styling/](http://tablepress.org/faq/documentation-css-selectors-styling/)
 * In your case, you’ll just have to use
 *     ```
       .tablepress,
       .tablepress tr,
       .tablepress tbody td,
       .tablepress thead th,
       .tablepress tfoot th {
       	border: 2px solid #000000;
       }
       ```
   
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘One code for all tables’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/one-code-for-all-tables/#post-5656564)
 * Status: resolved