Table Perfectly Centered on Desktop, But Not Mobile

[ad_1]

Hi,

thanks for your post, and sorry for the trouble.

Technically, the table is not “off-center”, but it’s extending beyond its parent element (the page’s content area), because the content requires more width. This is the rather classical problem of responsiveness of tables on the web. For more information on that, please see https://tablepress.org/extensions/responsive-tables/ .

However, in your case, a bit of CSS code, to instruct the browser to shrink the images, should be sufficient. Please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

.tablepress-id-1 img {
  max-width: 100%;
}

Regards,
Tobias

PERFECT! Thank you so much, Tobias!

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!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer