• Resolved lastcookie

    (@lastcookie)


    Hi Tobias,

    frist of all thanks for creating TablePress. I am using it on many of my projects and it is such a powerful tool for me!

    Right now I am starting to get a little crazy, because I cant find the right solution for my problem ?? I have searched through the forum to find a solution, but nothing seems to work…

    On the main page of my website (see here: https://bluetooth-kopfh?rer-test.com/ ) I want to include different tables made with TablePress. Some of them are fullwidth (width = 100%) and thats great. But for some of the tables I dont want a width of 100%. For example the tables with only 2 columns: how can I set the width of the WHOLE table, so there is a (blank) space between the right or left side of the table and the container?

    At the moment I am using the following CSS, so that the 2 columns have the same width:

    .tablepress-id-15 th,
    .tablepress-id-15 td {
    	width: 50%;
    }

    But how do I set the width of the whole table?

    Tobias, thank you for your help!

    Best regards
    Tim

    • This topic was modified 7 years, 10 months ago by lastcookie.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You probably want:

    .entry .tablepress-id-13 {
        width: auto;
        margin: 0 auto 1em;
    }

    (The .entry is necessary to override some CSS of your theme.)

    Regards,
    Tobias

    Thread Starter lastcookie

    (@lastcookie)

    Works perfecly fine, Tobias. Thank you for the fast reply!!

    Plugin Author TobiasBg

    (@tobiasbg)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Width of table, again…’ is closed to new replies.