Title: column width
Last modified: December 21, 2017

---

# column width

 *  Resolved [franzgasser](https://wordpress.org/support/users/franzgasser/)
 * (@franzgasser)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/column-width-40/)
 * Hi Tobias,
    I am using the following code in order to set column width of selected
   tables:
 * .tablepress-id-9.column-1 {
    width: 100px; }
 * .tablepress-id-9 .column-2 {
    width: 90px; }
 * .tablepress-id-9 .column-3 {
    width: 80px; }
 * Is there a way to use a shorter code for this, instead of defining width for 
   each column? (for instance using only once the selector and then defining the
   width for all columns together).
 * Kind regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcolumn-width-40%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/column-width-40/#post-9802274)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * No, in this particular case, shortening is not possible.
    If some columns would
   get the same width, you could use a syntax like
 *     ```
       .tablepress-id-9 .column-1,
       .tablepress-id-9 .column-2,
       .tablepress-id-9 .column-3 {
         width: 80px;
       }
       ```
   
 * (Note that your first block of code is missing a space before the `.column-1`.)
 * Regards,
    Tobias
    -  This reply was modified 8 years, 5 months ago by [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/).

Viewing 1 replies (of 1 total)

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

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/column-width-40/#post-9802274)
 * Status: resolved