Title: extra css classes
Last modified: August 21, 2016

---

# extra css classes

 *  Resolved [jrcollins](https://wordpress.org/support/users/jrcollins/)
 * (@jrcollins)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/extra-css-classes/)
 * Hi, I have just installed the Tablepress plugin and was wondering how exactly
   do I add extra css classes? Could you give a quick example? Thanks.
 * [http://wordpress.org/plugins/tablepress/](http://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/extra-css-classes/#post-4305773)
 * Hi,
 * thanks for your quesiton.
 * Those can be added in the “Extra CSS classes” field on each table’s “Edit” screen.
   The idea here is to add one to multiple tables to be able to change e.g. the 
   styling on multiple tables with one small CSS declaration instead of multiple
   individual ones (which are based on the table ID based CSS selector as described
   in the TablePress Documentation at [http://tablepress.org/documentation/](http://tablepress.org/documentation/)).
   
   Does that help? Otherwise, could you maybe describe what you want to change in
   your tables? I can then probably tell you whether you should use “Extra CSS classes”
   for that.
 * Regards,
    Tobias
 *  Thread Starter [jrcollins](https://wordpress.org/support/users/jrcollins/)
 * (@jrcollins)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/extra-css-classes/#post-4305783)
 * Hey, thank you for your prompt reply. I still don’t quite get what you mean. 
   Could you give an example of how you would enter an extra css class?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/extra-css-classes/#post-4305900)
 * Hi,
 * sure! Let’s assume that you have five tables in total, and for three of them (
   e.g. the tables with the IDs 1, 3, and 4), you want to change the font-size.
   
   Then, you could either use the long “Custom CSS”
 *     ```
       .tablepress-id-1 th,
       .tablepress-id-1 td,
       .tablepress-id-3 th,
       .tablepress-id-3 td,
       .tablepress-id-4 th,
       .tablepress-id-4 td {
         font-size: 15px;
       }
       ```
   
 * or you could “invent” an “Extra CSS class”, e.g. “tablepress-my-custom-font-size”.
   
   Then, you would add that into the “Extra CSS classes” textfield of the three 
   tables 1, 3, and 4, and you could then use the shorter “Custom CSS” code
 *     ```
       .tablepress-my-custom-font-size th,
       .tablepress-my-custom-font-size td {
         font-size: 15px;
       }
       ```
   
 * Now imagine that you add a sixth table that should also get this modified font
   size. Instead of having to adjust the “Custom CSS” (which would be necessary 
   with the first block of CSS from above), you’ll only have to add “tablepress-
   my-custom-font-size” as an “Extra CSS class” for table 6.
 * Regards,
    Tobias
 *  Thread Starter [jrcollins](https://wordpress.org/support/users/jrcollins/)
 * (@jrcollins)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/extra-css-classes/#post-4305910)
 * ok, thanks Tobias, good explanation.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/extra-css-classes/#post-4305911)
 * 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](http://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘extra css classes’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/extra-css-classes/#post-4305911)
 * Status: resolved