Title: Cell Text Alignment
Last modified: May 31, 2023

---

# Cell Text Alignment

 *  Resolved [davidblyth](https://wordpress.org/support/users/davidblyth/)
 * (@davidblyth)
 * [3 years ago](https://wordpress.org/support/topic/cell-text-alignment-2/)
 * I am using the following CSS:
 * .tablepress-id-4007 .column-3,
   .tablepress-id-4007 .column-4,.tablepress-id-4007.
   column-5,.tablepress-id-4007 .column-6,.tablepress-id-4007 .column-7,.tablepress-
   id-4007 .column-8 {width: 150px;vertical-align: middle;text-align: center;}
 * To try center the text in these columns, but it having no effect.
 * Also if I upgrade to the Pro Table Press would I be able to change the background
   color of a cell, you will see on this page the lowest time per row is highlighted
   in purple, but I have done this manually in the CSS Options, could it be done
   in the Pro version just based on the data in the table.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcell-text-alignment-2%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)
 * [3 years ago](https://wordpress.org/support/topic/cell-text-alignment-2/#post-16783159)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * The reason for this is that there is other CSS code with a higher priority overriding
   your desired changes. Fortunately, you can adjust this, by instead trying this
   CSS code:
 *     ```wp-block-code
       .tablepress-id-4007 .column-3,
       .tablepress-id-4007 .column-4,
       .tablepress-id-4007 .column-5,
       .tablepress-id-4007 .column-6,
       .tablepress-id-4007 .column-7,
       .tablepress-id-4007 .column-8 {
         width: 150px;
         vertical-align: middle !important;
         text-align: center !important;
       }
       ```
   
 * The `!important` flag will give your CSS the higher priority then.
 * As for changing those cell background colors: The TablePress Pro version does
   have cell and row highlighting features, but these can not find the lowest value
   in a row automatically, so that they will not be helpful for this. Right now,
   I can also only think of doing this manually. Sorry for not having better news
   here.
 * Regards,
   Tobias
 *  Thread Starter [davidblyth](https://wordpress.org/support/users/davidblyth/)
 * (@davidblyth)
 * [3 years ago](https://wordpress.org/support/topic/cell-text-alignment-2/#post-16783319)
 * Thank you so much as always
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years ago](https://wordpress.org/support/topic/cell-text-alignment-2/#post-16783333)
 * 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 [here](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   in the plugin directory. Thanks!

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

The topic ‘Cell Text 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/)

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