Hi,
thanks for your post, and sorry for the trouble.
For that, you could simply use some “Custom CSS” on the “Plugin Options” screen like
.tablepress-id-123 {
width: 250px;
}
to get a fixed width, or
.tablepress-id-123 {
width: auto;
}
to have the table expand to just slightly more than the content in it.
The 123 in that code needs to be changed to the table ID.
If this code doesn’t work, 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
Thanks for the ultra-fast response, Tobias. It really seems you are on top of this. Great.
I tried this before, but it didn’t have any effect on the table. I have to mention thought that I am using some <div> tags on this page, as I am working with a Open Streets map and some images that I need to incorporate into my page layout.
Unfortunately, my site isn’t live yet, so I can’t send you a link. But here is some of the code I used. Could this cause the conflict?
<div style=”padding-top: 20px;”>
<h4>Tour Dates</h4>
[table id=3 /]
*Additional dates upon request
</div>
Many thanks for your time and help with this.
Cheers!
Hi,
I don’t think that the <div>s have to do with this, but there might be some other CSS in the page that is more “aggressive”, so that we have to become more aggressive as well, by adding the !important keyword:
.tablepress-id-123 {
width: 250px !important;
}
If that also doesn’t help, we’ll have to wait until the site is live, as I’d then really need to investigate the page more closely.
Regards,
Tobias
This did it, Tobias.
Many thanks, you really rock!
Cheers!
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!
Habe soeben mein 5-Sterne Rating hinterlassen. Nochmals aller herzlichsten Dank und viele Gruesse nach Magdeburg.
Cheers!
Hi,
danke! 🙂 Freut mich sehr!
Viele Grüße,
Tobias