Title: Table justify
Last modified: January 15, 2023

---

# Table justify

 *  Resolved [saharsahar](https://wordpress.org/support/users/saharsahar/)
 * (@saharsahar)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/table-justify/)
 * Hello
 * I need justify cell of table.
 * I want the text in each cell to be in the middle
 * please help me

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/table-justify/#post-16377214)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * For this, you can add this to the “Custom CSS” textarea on the “Plugin Options”
   screen of TablePress:
 *     ```wp-block-code
       .tablepress-id-123 th,
       .tablepress-id-123 td {
         text-align: center;
       }
       ```
   
 * where 123 is the table ID.
 * Regards,
   Tobias
 *  Thread Starter [saharsahar](https://wordpress.org/support/users/saharsahar/)
 * (@saharsahar)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/table-justify/#post-16380283)
 * Hello
 * Thanks alot
 * I do it For every table ????
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/table-justify/#post-16380780)
 * Hi,
 * for that use the general `.tablepress` CSS class instead of `.tablepress-id-123`,
   i.e. use
 *     ```wp-block-code
       .tablepress th,
       .tablepress td {
         text-align: center;
       }
       ```
   
 * Regards,
   Tobias
 *  Thread Starter [saharsahar](https://wordpress.org/support/users/saharsahar/)
 * (@saharsahar)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/table-justify/#post-16388132)
 * Hi
 * Thanks alot
 * What is the id of all the tables?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/table-justify/#post-16388695)
 * Hi,
 * only the individual tables have an ID. That’s when you use `.tablepress-id-123`
   where `123` is the ID.
 * If you want to do something for all tables at once, just use `.tablepress` in
   the CSS code.
 * Regards,
   Tobias

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

The topic ‘Table justify’ 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: [3 years, 4 months ago](https://wordpress.org/support/topic/table-justify/#post-16388695)
 * Status: resolved