• Resolved Tika Mazul

    (@oceanazul)


    I’m so sorry.i know this has been asked and answered plenty of times, but i cannot figure out why my tables are not centering. I had them centered at some point, but now they are not. Would you mind having a quick peek at my html/css and seeing if it’s something glaringly obvious. Is there some way i can provide the url privately?

    i have put the following in my project css section:

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

    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 Tika Mazul

    (@oceanazul)

    Hi Tobias! Thanks for your reply. Is there an email address i can send the link to? (I would rather not post the link here)

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    sure, please use the email address that you can find in the plugin’s main PHP file, “tablepress.php”.

    Regards,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the email with the URL! I was able to take a look and could confirm the issue.

    This is caused by your theme, which for some reason contains CSS code that affects how TablePress tables are rendered. To override that, please extend the “Custom CSS” that you posted above to

    .tablepress {
    	width: auto;
    	margin: 0 auto 1em !important;
    	display: table !important;
    }

    Regards,
    Tobias

    Thread Starter Tika Mazul

    (@oceanazul)

    Thank you so much!

    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 ‘Cannot center tables’ is closed to new replies.