• Resolved chriskar07

    (@chriskar07)


    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

    (@tobiasbg)

    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

    Thread Starter chriskar07

    (@chriskar07)

    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.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    (@chriskar07)

    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

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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.