Title: Center Text
Last modified: August 31, 2016

---

# Center Text

 *  Resolved [FGUTheDoctor](https://wordpress.org/support/users/fguthedoctor/)
 * (@fguthedoctor)
 * [10 years ago](https://wordpress.org/support/topic/center-text-7/)
 * As a newbie, I need your help!
    What am I doing wrong?
 * I would like to have text aligned centered in columns and in the middle of rows(
   where applicable). Yet I am not able to do this. So, in a word: help!
 * See: [http://www.gosocialmedia.xyz/?page_id=15](http://www.gosocialmedia.xyz/?page_id=15)
 * Custom CSS:
 * .tablepress .odd td {
    background-color: #003366; }
 * .tablepress .even td {
    background-color: #003366; opacity: .6; }
 * .tablepress .row-hover tr:hover td {
    background-color: #ffffff; color: #003366;}
 * .tablepress {
    width: auto; margin: auto 5em; font-family: Tahoma; font-size:
   16px; color: #ffffff; border-style: solid; border-width: medium; border-color:
   blue; border-style: outset; text-transform: capitalize; text-align: center; vertical-
   align: middle; font-weight: bold; }
 * Dedug Info:
 * · Website: [http://www.gosocialmedia.xyz](http://www.gosocialmedia.xyz)
    · TablePress:
   1.7 · TablePress (DB): 32 · TablePress table scheme: 3 · Plugin installed: 2016/
   04/21 12:29:12 · WordPress: 4.5 · Multisite: no · PHP: 5.4.43 · mysqli Extension:
   false · mySQL (Server): 5.5.42-37.1-log · mySQL (Client): 5.5.42-37.1 · ZIP support:
   yes · UTF-8 conversion: yes · WP Memory Limit: 40M · Server Memory Limit: 256M·
   Magic Quotes: off · WP_DEBUG: false · WP_POST_REVISIONS: true
 * [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)
 * [10 years ago](https://wordpress.org/support/topic/center-text-7/#post-7305023)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * For this, please try adding this “Custom CSS”:
 *     ```
       .tablepress-id-123 thead th,
       .tablepress-id-123 tbody td {
         text-align: center;
         vertical-align: middle;
       }
       ```
   
 * where 123 needs to be changed to the desired table ID.
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Center Text’ 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: [10 years ago](https://wordpress.org/support/topic/center-text-7/#post-7305023)
 * Status: resolved