Table and Column Width
-
The tables always span across my entire page and I don’t want that. I want the table to adjust itself to the content.
I’ve tried to set the column widths this way and it doesn’t work:
.tablepress-id-1 .column-1 {
width: 50px;
}.tablepress-id-1 .column-2 {
width: 50px;
}.tablepress-id-1 .column-3 {
width: 50px;
}.tablepress-id-1 .column-4 {
width: 50px;
}I’ve also tried fiddling around with the padding but it only affected it vertically, not horizontally so I gave up on it.
.tablepress-id-1 .column-1 {
padding: 4px;
}.tablepress-id-1 .column-2 {
padding: 4px;
}.tablepress-id-1 .column-3 {
padding: 4px;
}.tablepress-id-1 .column-4 {
padding: 4px;
}What am I doing wrong?
Here is my table:
https://www.learn-english-now.whytecrow.com/wp/lessons/beginner-lessons/numbers-1-100/
- The topic ‘Table and Column Width’ is closed to new replies.