• Resolved maf231

    (@maf231)


    Hi,

    I have inserted a table using table press. On the existing theme I was using it was fine, but now with the theme that I have (minimaze) it is not laying out properly (columns too wide). I have tried changing the padding, removing the padding, border etc. and nothing is working.

    My site is still in development, but trying to get it launched today so any help that can be provided would be so appreciated.

    Thanks,

    Michele

    https://www.ads-software.com/plugins/tablepress/

Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi Tobias

    I added the css that you told me and now the table is not at all width of the page.

    But I tried to add specific column width and I do not get to shrink it more than what is right now. Even if I use font 10px the font reduces but the size of the tables does not.

    here is the link


    Link

    .entry-content .tablepress-id-29 {
    	width: auto;
    }
    
    .tablepress-id-29 .column-1 {
    	width: 2px;
    }
    
    .tablepress-id-29 .column-2 {
    	width: 2px;
    }
    
    .tablepress-id-29 .column-3 {
    	width: 2px;
    }
    
    .tablepress-id-29 .column-4 {
    	width: 2px;
    }
    
    .tablepress-id-29 .column-5 {
    	width: 2px;
    }
    
    .tablepress-id-29 .column-6 {
    	width: 2px;
    }
    
    .tablepress-id-29 .column-7 {
    	width: 2px;
    }
    
    .tablepress-id-29 .column-8 {
    	width: 2px;
    }
    
    .tablepress-id-29 .column-10 {
    	width: 2px;
    }

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    setting small column widths will not help here, as the width can never be smaller than what the content in the cells require.

    We can however reduce the padding some more. Unfortunately, my code from above contains an error (a missing !important declaration), so please try again with

    .tablepress th {
      padding: 4px 18px 4px 18px !important;
    }
    .tablepress td {
      padding: 4px !important;
    }

    Meanwhile, I suggest to remove the CSS for the individual column widths, as that’s not helping here anyways.

    Regards,
    Tobias

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Tablepress columns too wide on an imported (xlsx) table’ is closed to new replies.