Title: Vertical alignment
Last modified: April 26, 2018

---

# Vertical alignment

 *  Resolved [idgrp](https://wordpress.org/support/users/idgrp/)
 * (@idgrp)
 * [8 years ago](https://wordpress.org/support/topic/vertical-alignment-11/)
 * Hi Tobias
 * I am having trouble with the vertical alignment in my table. I want to reduce
   the height if the rows, which have been increased by adding some html for the
   PayPal “Donate” button, or having the text in columns 1 and 2 align centrally
   in the vertical.
 * I have tried the latter by adding the css:
    .tablepress thead th, .tablepress
   tfoot th { background-color: #13b5eb; }
 * .tablepress-id-1 th,
    .tablepress-id-1 td { vertical-align: middle; } But have
   not had any luck. Please help!
 * Thanks
    Ian
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvertical-alignment-11%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years ago](https://wordpress.org/support/topic/vertical-alignment-11/#post-10222465)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * The extra space is caused by line breaks in the HTML code. These are converted
   to HTML `<br />` elements automatically. To turn that off, please change the 
   Shortcode on that page to
 *     ```
       [table id=1 convert_line_breaks=false /]
       ```
   
 * To then fix the alignment, please change your last block of code to
 *     ```
       .tablepress-id-1 thead th,
       .tablepress-id-1 tbody td {
         vertical-align: middle;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [idgrp](https://wordpress.org/support/users/idgrp/)
 * (@idgrp)
 * [8 years ago](https://wordpress.org/support/topic/vertical-alignment-11/#post-10224755)
 * Thank you very much, Tobias!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years ago](https://wordpress.org/support/topic/vertical-alignment-11/#post-10224786)
 * 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/plugin/tablepress/reviews/#new-post)
   here in the plugin directory. Thanks!

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

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

 * [alignment](https://wordpress.org/support/topic-tag/alignment/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [vertical](https://wordpress.org/support/topic-tag/vertical/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/vertical-alignment-11/#post-10224786)
 * Status: resolved