Hi,
thanks for your question, and sorry for the trouble.
For that, the best approach should be a CSS3 Media query, like
@media screen and (max-width:768px) {
.tablepress th,
.tablepress td {
font-size: 10px;
}
}
This example should reduce the font size of the text in the table on small screens. You could add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress.
Regards,
Tobias
Thread Starter
lucjak
(@lucjak)
Hello Tobias,
Thank you very much!
One more question – is it possible to display different size of the image on mobile and different for desktop?
Hi,
yes, with a similar method, like
@media screen and (max-width:768px) {
.tablepress-id-123 img {
width: 100px;
}
}
Regards,
Tobias
Thread Starter
lucjak
(@lucjak)
Great! Thank you very much for help 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!