Hi,
thanks for your question, and sorry for the trouble.
As these are the English-language forums, I’ll reply in English, so that more people can benefit from our discussion. I hope that’s ok.
The reason for this is that the table width is stretched to 100% of the content width.
To change this, some “Custom CSS” on the “Plugin Options” screen like
.tablepress-id-123 {
width: auto !important;
}
(with the correct table ID) should help.
Regards,
Tobias
I’v added the code into the custom css with the right id… nothing changed 🙁
wenn ich eine Tabelle einer anderen seite impotiere funktioniert es komischer weise … aber bei eigene tabellen nicht
Hi,
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
Hi,
thanks for the link!
Not the id
part has to be changed, but the number (from 123 to the correct ID) 🙂
Additionally, please try turning off the “Use DataTables” checkbox on the table’s “Edit” screen, as that would interfere here (you’d have to set the width of the wrapping container otherwise.
Regards,
Tobias
without “use datatables” i cant use the scrollingfunktion, rigth?
i removed the option and chanched the id but still have the problem
Hi,
ah, that helped. Now I see what’s going on.
You can now actually turn DataTables back on (so that you can use the scrolling), and you can remove the CSS for the widths again. That won’t help here.
Instead, you will have to change the HTML code that is inserted in the cells (for the images). That starts with something like
<figure style="width: 1200px;"
and that 1200px number is responsive for the large width. So, either remove or adjust that attribute in all cells, or try doing that with CSS:
.tablepress-id-2 figure {
width: 250px !important;
}
Regards,
Tobias