Make Table Width Smaller
-
I would like to make the size of this table smaller. I have read and followed your advice to a number of different users, with no luck. I’m guessing it’s something in my theme, but I don’t know how to figure that out. Here’s the code I’ve added:
.tablepress thead th, .tablepress tfoot th { background-color: #BDCEF4; } .tablepress th, .tablepress td { text-align: center; padding: 2px; } .tablepress-id-1 { width: auto; } .tablepress-id-1 .column-1 { width: 100px; } .tablepress-id-1 .column-2 { width: 75px; } .tablepress-id-1 .column-3 { width: 75px; }
On the Width: auto line “auto” is in red, indicating it’s not an available choice? Same for “center”. I tried typing a number in, but that didn’t change the size of the table either. I just want the table columns to be closer in size to the contents, and not have so much white space. Also, to line up with the size of the doc embedded above it.
Another weird thing is that when I open the custom css window, the lines under “width: auto” are not visible until I click somewhere and make a change (like delete a space or something). Not really affecting my code, but it’s some kind of glitch. Using Firefox.
My table is on this page: https://palmettoskateclub.com/calendar/freestyle-schedule/
Thanks in advance for your help!
Fran
- The topic ‘Make Table Width Smaller’ is closed to new replies.