Title: 2 column width
Last modified: August 22, 2016

---

# 2 column width

 *  Resolved [CLT](https://wordpress.org/support/users/clt/)
 * (@clt)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/2-column-width/)
 * trying to have 2 evenly spaced columns on this page <[https://clt.manoa.hawaii.edu/clt-projects/&gt](https://clt.manoa.hawaii.edu/clt-projects/&gt);.
   I’ve added the following custom css, input various width settings but nothing
   has changed?
 * .tablepress-id-31 .column-1,
    .tablepress-id-31 .column-2 { width: 30%; }
 * .tablepress-id-1 .column-1 {
    text-align: center; vertical-align: middle; }
 * .tablepress-id-1 .column-2 {
    text-align: center; vertical-align: middle; }
 * .tablepress-id-1,
    .tablepress-id-1 tr, .tablepress-id-1 tbody td, .tablepress-
   id-1 thead th, .tablepress-id-1 tfoot th { border: none; }
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/2-column-width/#post-5434695)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Well, with that CSS code, you would be setting the column widths of table 31.
   However, the table on that page has the ID 1. Also, the width of 30% in a two-
   column table won’t really work.
    Those, please try again with
 *     ```
       .tablepress-id-1 .column-1,
       .tablepress-id-1 .column-2 {
       	width: 50%;
       	text-align: center;
       	vertical-align: middle;
       }
   
       .tablepress-id-1 tbody td {
       	border: none;
       }
       ```
   
 * (I have also optimized/shortened the CSS a bit.)
 * Regards,
    Tobias
 *  Thread Starter [CLT](https://wordpress.org/support/users/clt/)
 * (@clt)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/2-column-width/#post-5434731)
 * Tobias,
    Thank you, that code did the trick!
 *  Thread Starter [CLT](https://wordpress.org/support/users/clt/)
 * (@clt)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/2-column-width/#post-5434735)
 * Tobias,
    1 more question. If I wanted to add a few more table ids, where would
   I slot that in the code?
 * thank you
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/2-column-width/#post-5434791)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * To extend this to more tables, you can extend this like this:
 *     ```
       .tablepress-id-1 .column-1,
       .tablepress-id-1 .column-2,
       .tablepress-id-2 .column-1,
       .tablepress-id-2 .column-2,
       .tablepress-id-5 .column-1,
       .tablepress-id-5 .column-2 {
       	width: 50%;
       	text-align: center;
       	vertical-align: middle;
       }
   
       .tablepress-id-1 tbody td,
       .tablepress-id-2 tbody td,
       .tablepress-id-5 tbody td {
       	border: none;
       }
       ```
   
 * 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!

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

The topic ‘2 column width’ 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: [11 years, 6 months ago](https://wordpress.org/support/topic/2-column-width/#post-5434791)
 * Status: resolved