Title: Column width by CSS
Last modified: September 1, 2016

---

# Column width by CSS

 *  Resolved [gaudy2016](https://wordpress.org/support/users/gaudy2016/)
 * (@gaudy2016)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/)
 * Tobias, hi!
 * Please – is it right syntax for definition of column width?
 * .tablepress-zebricky-5 .column-1 {
    width: 300px !important; }
 * When I made color ror the same column in earlier CSS can I use for width another?
   Or have I use one CSS for all formats each column?
 * Many thanks
 * Dan
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482432)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Yes, this is the correct syntax, except that I don’t know what “zebricky” is.
   You might therefore want to use
 *     ```
       .tablepress-id-5 .column-1 {
         width: 300px !important;
       }
       ```
   
 * Using this in addition to the color is no problem. You could also combine it:
 *     ```
       .tablepress-id-5 .column-1 {
         width: 300px !important;
         color: #ff0000;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [gaudy2016](https://wordpress.org/support/users/gaudy2016/)
 * (@gaudy2016)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482434)
 * Tobias, thanks. “Zebricky” is name of extra CSS class. I would like use it like
   a class.
 * Dan
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482441)
 * Hi Dan,
 * ah, ok. That’s no problem then, and the syntax is fine.
 * Regards,
    Tobias
 *  Thread Starter [gaudy2016](https://wordpress.org/support/users/gaudy2016/)
 * (@gaudy2016)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482444)
 * Tobias, it is good news for me! Bad reality is that it is not ok. Problem is 
   in tables wider than page. For example here (2nd column) 🙁
 * [http://pratelegolfu.cz/hcp-cup/zebricek-hcp-cup/hcp-cup-2016-muzi/](http://pratelegolfu.cz/hcp-cup/zebricek-hcp-cup/hcp-cup-2016-muzi/)
 * Dan
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482445)
 * Hi,
 * I can’t see your CSS in the page, at the moment?
 * It might help to additionally change the view mode:
 *     ```
       .tablepress-id-11 {
         table-layout: fixed;
       }
       ```
   
 * But yet, setting widths in tables that are wide than the page is very tricky :-/
 * Regards,
    Tobias
 *  Thread Starter [gaudy2016](https://wordpress.org/support/users/gaudy2016/)
 * (@gaudy2016)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482446)
 * Yes, I understand, dont worry. FYI – last advice crashed the tab.
 * Thanks
 * Dan
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482451)
 * Hi Dan,
 * it crashed the tab?! I have no idea how that would be possible. Which browser?
 * Regards,
    Tobias
 *  Thread Starter [gaudy2016](https://wordpress.org/support/users/gaudy2016/)
 * (@gaudy2016)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482452)
 * It was Safari. Yes, there was 2nd column across the full screen and everything
   from 3rd column ws corrupted and pressed.
 * But as I wrote, dont worry, I use this visual.
 * Dan
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482457)
 * Hi Dan,
 * really weird… Sorry that I couldn’t help with a solution here.
 * Best wishes,
    Tobias
 *  Thread Starter [gaudy2016](https://wordpress.org/support/users/gaudy2016/)
 * (@gaudy2016)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482461)
 * It is ok, I start to use your plugin for my 6 tournament orders with pleasure!
   It is news for my players and they are excited 😉
 * Thanks and good luck!
 * Dan
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482462)
 * Hi,
 * no problem, you are very welcome! 🙂
 * Best wishes,
    Tobias

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

The topic ‘Column width by CSS’ 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/)

 * 11 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/column-width-by-css/#post-7482462)
 * Status: resolved