Hi,
thanks for your question, 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
Hi,
that’s the link.
I prepared this page intentionnally with a narrow width, so that you can see the scroll bar. The widths of the columns, I defined with the shortcode
[table id=6 / column_widths=”300px|200px|150px|200px” ]
In this way, I can define a table which does not extend over the entire page width.
So it seems everything ok?
When I was writing you my first question, this table always got into central position, left alignment was not possible. And it was not possible either to define a smaller width of the table. Today, I modified the shortcode above in erasing the column widhts .. no reaction. I then added new values for column widhts with other values .. no reaction. I had to erase the entire shortcode, actualize the page and to re-insert the short-code in order to have a reaction on the website.
Sorry for that erraneous behaviour of my programming. It seems that something influences my programming.
Kind regards and thanks for your great plugin!
Franz
Hi Franz,
setting the column widths like this is not recommended, and it will probably not work as expected (neither will using the CSS code for setting widths, however).
You have to note that the text in the table will always define the minimum required width. A table column can never be smaller than what the longest word in each column requires.
In addition, you are using the features of the DataTables JS library on this table, which can influence the widths.
I therefore suggest to always test width related changes with the DataTables JS library turned off (by uncheck the “Use DataTables” checkbox on the table’s “Edit” screen).
Regards,
Tobias
hi Tobias,
thanks a lot for your quick answer. Have a good time
Franz
Hi,
no problem, you are very welcome! 🙂
Best wishes,
Tobias