• Resolved fdmarin

    (@fdmarin)


    I have been struggling with the controlling of column widths to no avail. In reading other posts and trying various things I have not had success.

    The following is all that have in my page and no matter what % I enter the column width does not seem to change. Furthermore, with the latest change to Table 13 for whatever reason, it changed the column with from that of the others on the same page even though they are all technically the same. Please note that my choice of 33% is somewhat arbitrary. I was planning something along the lines of 10%/30%/60% but no matter what I set it to nothing seems to change.

    Any guidance or help would be greatly appreciated.

    [table id=13 column_widths=”33%|33%|33%” /]
    [table id=14 column_widths=”33%|33%|33%” /]
    [table id=15 column_widths=”33%|33%|33%” /]
    [table id=16 column_widths=”33%|33%|33%” /]

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Setting the column widths using the Shortcode parameter is usually working fine, except in one edge case: When the first row of the table has #colspan# to combine cells.

    Therefore, I recommend to remove these parameters from the Shortcodes again. Instead, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress thead th,
    .tablepress tbody td {
     	padding: 8px !important;
    }
    
    .page-id-178 .tablepress .column-1 {
    	width: 16%;
    }
    .page-id-178 .tablepress .column-2 {
    	width: 30%;	
    }
    .page-id-178 .tablepress .column-3 {
    	width: 54%;	
    }

    Note how the first block of code reduces the padding (inner white space) in all table cells, while the other three blocks set the width of the three columns of all tables on this page (which internally has the WordPress page ID 178).

    Regards,
    Tobias

    Thread Starter fdmarin

    (@fdmarin)

    I was able to eliminate using #colspan# … thanks so much for your help!

    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 ‘TablePress Column Widths’ is closed to new replies.