• Resolved underdog_32

    (@underdog_32)


    Hi Tobias,

    I’m trying to center a table in the middle of a page. The table is 4 columns, 1 row. I’ve been on your sites FAQ page & used:

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

    When I used the code above, I changed the N to the number of the table. I put the code in the Custom CSS box under Plugin Options.

    I found a thread where someone had a similar problem. You suggested the following code:

    .tablepress-12_wrapper {
    width: auto;
    margin: 0 auto 1em !important;
    }

    Still nothing.

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    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 underdog_32

    (@underdog_32)

    http://www.brandontritten.com – see the 4 icons towards the bottom.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the link!

    Technically, the table is actually centered on that page, and the CSS code works fine.
    The problem basically is that the content area on that page is not centered, because it has a reduced width, due to the used page template.
    The slider at the top just creates the impression that the content area is bigger, as it has a bigger width.

    To fix this, you will have to increase the content area of the page, e.g. by trying a different page template on the page’s “Edit’ screen (if the theme offers them), like “Full width” or “One column”.

    Regards,
    Tobias

    Thread Starter underdog_32

    (@underdog_32)

    Thank you Tobias!

    Thread Starter underdog_32

    (@underdog_32)

    .

    Plugin Author Tobias Bäthge

    (@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 6 replies - 1 through 6 (of 6 total)

The topic ‘Centering the table’ is closed to new replies.