Title: Tablepress Vertical align
Last modified: August 31, 2016

---

# Tablepress Vertical align

 *  Resolved [dararede](https://wordpress.org/support/users/dararede/)
 * (@dararede)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/)
 * Hi! I am trying to make my table id 10 to align vertically but I don’t know why
   this code is not working.
 *     ```
       .tablepress-id-10 td {
       	vertical-align: middle;
       }
       ```
   
 * You can see it running at [http://www.whatmouse.com/](http://www.whatmouse.com/)
 * Thanks for your time, you have awesome plugin!
    -Dario
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/tablepress-vertical-align/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/tablepress-vertical-align/page/2/?output_format=md)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-7072976)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Please try again with
 *     ```
       .tablepress-id-10 tbody td {
       	vertical-align: middle;
       }
       ```
   
 * We just need to make the selector a bit more specific so that it overrides the
   default value.
 * Regards,
    Tobias
 *  Thread Starter [dararede](https://wordpress.org/support/users/dararede/)
 * (@dararede)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-7073067)
 * Thanks that worked perfectly, I am surely going to donate in future.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-7073084)
 * 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](https://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!
 *  [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8785177)
 * [@tobiasbg](https://wordpress.org/support/users/tobiasbg/) Sorry for the simple
   question but I’m a real newbie – where do I paste this code to get the text to
   vertically align?
 * Thank you!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8785684)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * All this would go in the “Custom CSS” text field on the “Plugin Options” screen
   of TablePress.
 * Regards,
    Tobias
 *  [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789138)
 * Thank you for the prompt reply! Could I use this code too to get all the cells
   aligned horizontally too??
 *  [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789157)
 * Oh my goodness, so easy when you know how! Thank you. And I’ve sorted out the
   horizontal align – thank you so much.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789162)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that you found a solution!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   here in the plugin directory. Thanks!
 *  [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789205)
 * Hi Tobias,
 * One last question I promise! Is it possible to center align the table title? 
   I’ve googled it but cannot seem to find anything about it.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789395)
 * Hi,
 * do you mean the table name that’s written above the table? Yes, that’s possible
   with
 *     ```
       .tablepress-table-name {
         text-align: center;
       }
       ```
   
 * Regards,
    Tobias
 *  [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789474)
 * I have this code in:
 * .tablepress-id-12 tbody td {
    vertical-align: middle; text-align: center; }
 * .tablepress-id-12 {
    text-align: center; }
 * And all of the text in the table is centered both horizontally and vertically
   but the title above the table is still left aligned..
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789486)
 * Hi,
 * did you try the CSS that I posted above?
    And what is the table title for you?
   Can you please post a link to the page with the table where this problem happens,
   so that I can take a direct look? Thanks!
 * Regards,
    Tobias
 *  [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789505)
 * I did – I’ve made the page public now – [http://www.hillmortonprimaryschool.com/test-page/](http://www.hillmortonprimaryschool.com/test-page/)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789528)
 * Hi,
 * please add
 *     ```
       .tablepress-table-name {
         text-align: center;
       }
       ```
   
 * as I have written above.
 * Regards,
    Tobias
 *  [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/#post-8789561)
 * I have this in already:
 * .tablepress-id-12 {
    text-align: center; }
 * Is that not right?

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/tablepress-vertical-align/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/tablepress-vertical-align/page/2/?output_format=md)

The topic ‘Tablepress Vertical align’ 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

 * [TobiasBg](https://wordpress.org/support/topic-tag/tobiasbg/)
 * [vertical-align](https://wordpress.org/support/topic-tag/vertical-align/)

 * 21 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/tablepress-vertical-align/page/2/#post-8789909)
 * Status: resolved