Title: Columns &#8211; equal width and table heading alignment
Last modified: March 22, 2017

---

# Columns – equal width and table heading alignment

 *  Resolved [waitfornight6](https://wordpress.org/support/users/waitfornight6/)
 * (@waitfornight6)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/columns-equal-width-and-table-heading-alignment/)
 * Hi,
 * Can you please tell me how to set equal width for columns 2 and 3 without fixing
   the width of the whole table? And one more, I need to align center the table 
   heading, while the other rows must be alighned: left for the firs column, right
   for the other colums. When I insert the following, everything is aligned right:
   .
   tablepress thead th, .tablepress tfoot th { text-align: center; .tablepress-id-
   6 .column-3 { text-align: right; }
 * .tablepress-id-6 .column-2 {
    text-align: right; }

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/columns-equal-width-and-table-heading-alignment/#post-8955273)
 * Hi,
 * thanks for your post, and sorry for the trouble. Also, please excuse the long
   wait for a reply. I just returned from holidays last night and was not able to
   reply earlier. Thanks for your understanding.
 * This code contains a few errors. Please try
 *     ```
       .tablepress thead th,
       .tablepress tfoot th {
         text-align: center;
       }
       .tablepress-id-6 .column-2,
       .tablepress-id-6 .column-3 {
         width: 35%;
         text-align: right;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [waitfornight6](https://wordpress.org/support/users/waitfornight6/)
 * (@waitfornight6)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/columns-equal-width-and-table-heading-alignment/#post-8955311)
 * Thank you for your reply, Tobias)
    The columns width is ok now, however unfortunately
   it doesn’t work with the heading alignment. The heading is still aligned right,
   just as the other rows in the column
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/columns-equal-width-and-table-heading-alignment/#post-8955337)
 * Hi,
 * 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
 *  Thread Starter [waitfornight6](https://wordpress.org/support/users/waitfornight6/)
 * (@waitfornight6)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/columns-equal-width-and-table-heading-alignment/#post-8955356)
 * Well, the site is not in English)
    Here is the link: [http://one.speak-time.com/](http://one.speak-time.com/)
   The table is under the text “Стоимость письменного перевода”. And there is a 
   toggler below with another table.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/columns-equal-width-and-table-heading-alignment/#post-8955366)
 * Hi,
 * thanks! One more CSS try:
 *     ```
       .tablepress thead th,
       .tablepress tfoot th {
         text-align: center;
       }
       .tablepress-id-6 .column-2,
       .tablepress-id-6 .column-3 {
         width: 35%;
       }
       .tablepress-id-6 tbody .column-2,
       .tablepress-id-6 tbody .column-3 {
         text-align: right;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [waitfornight6](https://wordpress.org/support/users/waitfornight6/)
 * (@waitfornight6)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/columns-equal-width-and-table-heading-alignment/#post-8955378)
 * It works now, thank you very much!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/columns-equal-width-and-table-heading-alignment/#post-8960010)
 * 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/)
   here in the plugin directory. Thanks!

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

The topic ‘Columns – equal width and table heading 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

 * [column width](https://wordpress.org/support/topic-tag/column-width/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/columns-equal-width-and-table-heading-alignment/#post-8960010)
 * Status: resolved