Hi,
thanks for your post, and sorry for the trouble.
The question is what exactly you want to shrink here. You could zoom the content of a table via
.tablepress-id-123 {
zoom: 80%;
}
However, the overall width will still be 100%, unless you use something like
.tablepress-id-123 {
width: auto;
}
So, without know what exactly you want (and maybe a link), it’s hard for me to help here.
For your second question: Yes, there’s a PHP function that you can use in PHP files, called Template Tag function: https://tablepress.org/faq/documentation-template-tag-functions/
Regards,
Tobias
Yes exaclty , i couldnt find the Template tag Function !!
i want to shrink the table and contents to be smaller than the page layout.
Its hard for me to give you a link because im trying localy before the table i move online.
-
This reply was modified 9 years, 3 months ago by
chriskar07.
Hi
shrinking is usually difficult, because it’s the table content that defines the minimum width.
You might have to shrink the font size and padding, e.g. via
.tablepress-id-123 th,
.tablepress-id-123 td {
padding: 4px;
font-size: 12px;
}
Regards,
Tobias
i asked for the php table tag in case i make an iframe with the table in it and perhaps it will become smaller (maybe even a with a zoom factor on the page)
do you think it will make a difference?
im trying to replicate this
http://www.athensauthenticmarathon.gr/site/index.php/en/results-en/457-results-2016
Hi,
no, I don’t think that this will make a difference.
It should be possible to achieve the same styling that would be possible with an iframe by just using CSS code.
However, it’s not always possible to achieve a desired styling/size, simply if the content requires more width.
Regards,
Tobias