Table Width/Padding Issue
-
I have seen a bunch of table width questions, and I have tried using the code in each of them, to no avail. I use tables in almost every post, so my goal is to apply custom CSS to all tables and knock it all out at once.
I tried using this code:
.tablepress .column-1 { padding-right: 4px; padding-left: 4px; }
And I did it for several columns, but all that happened was the cells got smaller vertically rather than horizontally. Ideally, I would like it so that the width of the cells is only slightly greater than the width of the text therein.
Here are a few examples of how these tables look:
Table at bottom, tons of padding in the “team” column.
Several tables, all sorts of different paddings on each.
Lots of space left after names. Longest name is “Roethlisberger,” but still padding to the right.
Single digits, columns still very wide.
Thanks in advance for your help and for an awesome product.
- The topic ‘Table Width/Padding Issue’ is closed to new replies.