• Resolved Tony S.

    (@tony-s)


    Hi, I know the answer to my question must be somewhere because it’s so basic. But I can’t find it. Maybe you can direct me to it. The question is I want to reduce the with of one of my tables. How do I do it? I just need the code? Can you help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    This depends ?? Usually, something like

    .tablepress-id-123 {
      width: auto;
    }

    works best. If not, can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter Tony S.

    (@tony-s)

    Thank You Tobias that worked! Thanks for the lesson. One more thing could you tell me the code to center the table on the page? Your help is very much appreciated. ??

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    for that, please try extending the code to

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

    Regards,
    Tobias

    Thread Starter Tony S.

    (@tony-s)

    Thanks again for your help Tobias. I knew you would know. You have been an amazing help.

    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 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Decrease Table Width’ is closed to new replies.