• Resolved diggy

    (@diggy)


    Hey there

    I have multiple tables on one page and i need the columns to line up evenly. seems to me custom css code to specify column width with percentage would be the way to go but it doesn’t seem to work…

    any idea how to do that?

    tablepress-id-tlnjuksnaine .column-1 {
    	width: 40%;
    }

    isn’t worknig…

    I need percentage because i’m running a responsive design site.

    thanks.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Using percentages for the column widths is usually no problem. You must however not forget that the content in the other columns then has to fit into the remaining 60%. If that does not fit, they will take more space than those 60% and obviously reduce the width of the 40% column.

    If you can’t make it work, please post a link and I’ll take a look.

    Regards,
    Tobias

    Thread Starter diggy

    (@diggy)

    Can’t seem to get it working.
    the link is: https://revaalia.ee/wordpress/juuksuriteenused-tallinna-salongis/

    I have the following code in Load Custom CSS

    .tablepress-id-tlnjuksnaine .column-1 {
    	width: 31%;
    }
    
    .tablepress-id-tlnjuksnaine .column-2 {
    	width: 23%;
    }
    
    .tablepress-id-tlnjuksnaine .column-3 {
    	width: 23%;
    }
    
    .tablepress-id-tlnjuksnaine .column-4 {
    	width: 23%;
    }
    
    .tablepress-id-tlnjuksmees .column-1 {
    	width: 31%;
    }
    
    .tablepress-id-tlnjuksmees .column-2 {
    	width: 23%;
    }
    
    .tablepress-id-tlnjuksmees .column-3 {
    	width: 23%;
    }
    
    .tablepress-id-tlnjuksmees .column-4 {
    	width: 23%;
    }

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the link. For me, both tables work just fine (in Google Chrome), and they do have these widths, and when I shrink the browser window (to take responsiveness), they line up perfectly…
    So, I can’t spot any problems…

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘column widths percentage’ is closed to new replies.