• Resolved franzgasser

    (@franzgasser)


    Hello,
    I use the newest versions of WordPress and Table Press. I have 3 questions:

    1. How can I fix table width? Normally, tablepress tables extend over the full width of the site, but I prefer having small widths.
    2. How can I align to the left a table (not the text!)
    3. I installed the additional responsive plugin. I use catch evolution pro theme. If I use “scroll” as responsive approach, the slider below the table, which moves the content of table, is hardly visible. I guess that’s a problem of styling with this theme? Do you have any ideas?

    Kind regards

    Franz

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    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

    Thread Starter franzgasser

    (@franzgasser)

    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

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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

    Thread Starter franzgasser

    (@franzgasser)

    hi Tobias,
    thanks a lot for your quick answer. Have a good time

    Franz

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ??

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Table with and alignment’ is closed to new replies.