Also, is there anyway to make the rows more narrow than they currently are?
Hi,
thanks for your post, and sorry for the trouble.
You’ll likely just have to fix a typo. Please change
.tablepress tr,
.tablepress tbody td,
.tablepress thead th,
.tablepress tfoot td {
border: none;
}
to
.tablepress tr,
.tablepress tbody td,
.tablepress thead th,
.tablepress tfoot th {
border: none;
}
(th
instead of td
).
Making rows more narrow could probably be done by setting columns widths, e.g. via https://tablepress.org/faq/column-widths/
Regards,
Tobias
Hi,
Thanks for your reply. I fixed the type of it didn’t work.. The other change didn’t do anything either and I noticed you put width… I’m looking to change the height of the cells… not the width…
Thanks!!
Hi,
ok, then please extend
border: none;
to
border: none !important;
For the height of the rows, you’ll have to either reduce the padding or the line-height in the cells.
Regards,
Tobias
Hi – got the line fix… Thanks!
For the row height I already put the padding to 0 and am copying tables from OpenOffice Calc (basically Excel but free open source). It doesn’t seem to matter how small I make the line height in the spreadsheet. They always come out the same once uploaded. Any ideas?
Or did you mean something else by reduce ‘the line-height’?
Thanks again!
Hi,
good to hear that the border worked!
And yes, the padding is set to 0, so we’ll have to adjust the line height via CSS as well. Doing that in Calc or Excel is not possible, as TablePress only imports the data from there.
Instead, please extend
.tablepress td,
.tablepress tfoot th {
padding-left: 15px;
}
to
.tablepress tbody td,
.tablepress tfoot th {
padding-left: 15px;
line-height: 14px;
}
Regards,
Tobias
Perfect! Thanks so much! Awesome plugin and even better support!!!!!!!!!!!
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!