Title: Shrink Table Css
Last modified: March 11, 2017

---

# Shrink Table Css

 *  Resolved [chriskar07](https://wordpress.org/support/users/chriskar07/)
 * (@chriskar07)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/shrink-table-css/)
 * is there a way to shrink the table to smaller size?like a zoom 80% type of shrink?
   
   or even if there is a php function to call table instead of [table shortcode]?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/shrink-table-css/#post-8902465)
 * 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/](https://tablepress.org/faq/documentation-template-tag-functions/)
 * Regards,
    Tobias
 *  Thread Starter [chriskar07](https://wordpress.org/support/users/chriskar07/)
 * (@chriskar07)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/shrink-table-css/#post-8902639)
 * 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](https://wordpress.org/support/users/chriskar07/).
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/shrink-table-css/#post-8902657)
 * 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
 *  Thread Starter [chriskar07](https://wordpress.org/support/users/chriskar07/)
 * (@chriskar07)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/shrink-table-css/#post-8902718)
 * 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](http://www.athensauthenticmarathon.gr/site/index.php/en/results-en/457-results-2016)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/shrink-table-css/#post-8903004)
 * 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

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Shrink Table Css’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/shrink-table-css/#post-8903004)
 * Status: resolved