• Resolved viajarapie

    (@viajarapie)


    My table width adapts nicely to the panel width unless I use the head row option. If I declare the first row as head row, the head row contents don’t wrap in their cells, they appear in a single line, making the whole table stretch beyond browser window width if necessary.

    This post here shows the same table contents with and without a head row:

    https://viajarapie.info/wp-es/2017/02/tmp/

    I may add the table preview does adapt to available panel width even with a head row.

    I’ve browsed the forums as well as CSS tutorials and haven’t found a fix. Hope it’s easy to find! Thanks in advance

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Please uncheck the “Use DataTables” checkbox for this table. That should already be sufficient here.

    Regards,
    Tobias

    Thread Starter viajarapie

    (@viajarapie)

    Hi, thanks for the quick answer. It didn’t work though, it still shows just the same. Any other idea?
    Thanks again, regards

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, now I found it. Your theme is adding some CSS to prevent line breaks in the head row. To overwrite that, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    table.tablepress thead {
        white-space: normal;
    }

    Regards,
    Tobias

    Thread Starter viajarapie

    (@viajarapie)

    Fantastic, it works beautifully now! I could imagine it had something to do with something rather local as my theme because I didn’t find any references to such an issue but I don’t have the knowledge to find out.
    Thanks a lot, great job

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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!

    Thread Starter viajarapie

    (@viajarapie)

    I surely will, I’ll play around a bit longer so I can have a better perspective. So far it’s very good, thanks for sharing it.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    great, thanks for that ??

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Head row compromising table width’ is closed to new replies.