• Resolved mrthrasher

    (@mrthrasher)


    I would like to force all of the columns to be the same width. How can I do that?

    Thanks!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you go to Appearance > Edit CSS and add this snippet:

    .wpsm-comptable th {width:25%;}

    This is for 4 columns, obviously, if you have 5 cols the width is 20% etc.

    I forgot to mention, for a specific table, you will need to know the ID of it and add the CSS ID to your script:

    #wpsm-table-2.wpsm-comptable th {width:25%;}

    Thread Starter mrthrasher

    (@mrthrasher)

    Perfect! Thank you so much for your help.

    Hi there. Thank you for the above information. I also added the following code to make my columns all the same width:

    .wpsm-comptable th {width:15%;}

    What I would like to do also is to limit the overall size of the table to a maximum width so that it does not grow widthwise after a certain point even when the window is opened wider. Is there a way to do that with css?

    Many thanks!

    Sorry for the late reply!
    max-width: XXpx; should work in the same CSS block (XX is your limit, maybe 600px?)

    • This reply was modified 6 years, 6 months ago by Robin V.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need all columns the same width’ is closed to new replies.