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%;}
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 8 years ago by
Robin V.