• Resolved seobuzzim

    (@seobuzzim)


    In the latest version of Firefox (looks fine in Chrome and IE), on http://www.cleanroomconnection.com/cleanroom-apparel/cleanroom-coveralls/ in the 2nd set of tabs on the “Clean & Sterile Coveralls” tab. The table columns are not proportioned correctly. I have tried several suggestions in the forum and even tried to change the widths in Firebug, but nothing happens. I corrected several other tables on the other tabs on that page that were doing the same thing…but this table will not budge using the same techniques. Here is my current custom CSS code:

    #tablepress-id-30 {
    	table-layout: fixed;
    	width: 100%;
    }
    
    #tablepress-30 .column-1 {
    	width: 20% !important;
    }
    
    #tablepress-30 .column-2 {
    	width: 11% !important;
    }
    
    #tablepress-30 .column-3 {
    	width: 11% !important;
    }
    
    #tablepress-30 .column-4 {
    	width: 45% !important;
    }
    
    #tablepress-30 .column-5 {
    	width: 13% !important;
    }

    https://wordpress.org/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    First of all, from what I can see, most of the tables on the page have the individual JS functions (sorting, search, etc.) turned off.
    You should therefore also turn off the “Use DataTables” checkbox for these tables.

    Then, the problem with that specific table seems to be that you have table 30 on the page twice. Therefore, the HTML ID of the second table is #tablepress-30-no-2 and not #tablepress-30 (which is used in the CSS), as those have to be unique.
    So, you should probably switch to the “CSS class” based selectors (.tablepress-id-30).

    Regards,
    Tobias

    Thread Starter seobuzzim

    (@seobuzzim)

    Worked beautifully! thanks so much for the quick response. Love tablepress and have previously rated it!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

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

The topic ‘Column widths will not change’ is closed to new replies.