Title: How to avoid wrapping of cell content
Last modified: March 27, 2020

---

# How to avoid wrapping of cell content

 *  Resolved [bobbiedoo](https://wordpress.org/support/users/bobbiedoo/)
 * (@bobbiedoo)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/cant-make-table-have-same-width/)
 * I have a table which has same content length but I discovered that some cells
   still wrap their content. How can I avoid this. I want all the rows to have same
   look without any distorted cells.
 * Sample: gestationperiods.com/cattle-gestation-table
    -  This topic was modified 6 years, 2 months ago by [bobbiedoo](https://wordpress.org/support/users/bobbiedoo/).

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/cant-make-table-have-same-width/#post-12590355)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * For this, add this to the “Custom CSS” textarea on the “Plugin Options” screen
   of TablePress:
 *     ```
       .tablepress-id-1 thead th {
         white-space: nowrap;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [bobbiedoo](https://wordpress.org/support/users/bobbiedoo/)
 * (@bobbiedoo)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/cant-make-table-have-same-width/#post-12590362)
 * Thanks,but how can I apply this to all tables?
 *  Thread Starter [bobbiedoo](https://wordpress.org/support/users/bobbiedoo/)
 * (@bobbiedoo)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/cant-make-table-have-same-width/#post-12590384)
 * By the way, I tried the css code above but it didn’t work.
    -  This reply was modified 6 years, 2 months ago by [bobbiedoo](https://wordpress.org/support/users/bobbiedoo/).
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/cant-make-table-have-same-width/#post-12590437)
 * Hi,
 * good to hear that this helped! To use this on all tables, please use this modified
   CSS:
 *     ```
       .tablepress thead th {
         white-space: nowrap;
       }
       ```
   
 * Regards,
    Tobias

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

The topic ‘How to avoid wrapping of cell content’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/cant-make-table-have-same-width/#post-12590437)
 * Status: resolved