Hi there
I figured this out and my table is fine now
Thanks
Ciska
Hi,
thanks for your post, and sorry for the trouble.
Awesome! Good to hear that you found a solution already!
Best wishes,
Tobias
Hi
Yes sorry about the support call for that. I wanted to find out if there is a way to clean up the code when you want to apply the same formatting to several columns in 1 table. Below is my code but I’m sure there is a simpler way to combine code?
.tablepress-id-2 .column-4 {
width: 200px;
text-align: center;
}
.tablepress-id-2 .column-1 {
width: 300px;
}
.tablepress-id-2 .column-2 {
text-align: center;
}
.tablepress-id-2 .column-3 {
text-align: center;
}
Hi,
you could simplify this a bit by merging selectors:
.tablepress-id-2 .column-1 {
width: 300px;
}
.tablepress-id-2 .column-4 {
width: 200px;
}
.tablepress-id-2 .column-2,
.tablepress-id-2 .column-3,
.tablepress-id-2 .column-4 {
text-align: center;
}
This is possible when the command part between the { and } is the same.
Regards,
Tobias
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!