• Resolved IMTanuki

    (@imtanuki)


    Hi Tobias,

    Is there any CSS to force a fixed column width?

    I have a number of tables where the first n columns are logically fixed width (e.g. codes) and I’d like to set those columns to a fixed width to trigger the Responsive Ext (Collapse mode).

    Thanks!

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You could try setting column widths with CSS code, see https://tablepress.org/faq/column-widths/
    Note that the browser will not always apply them, however, due to the various influences and constraints on the column width.

    Regards,
    Tobias

    Thread Starter IMTanuki

    (@imtanuki)

    Tobias

    Thanks! This looks like it would be very useful with responsive collapse mode – by setting the first (second) columns to a fixed width, that would force a consistent “break”, such that you could force which columns are hidden / displayed in collapsed / uncollapsed mode.

    The problem with % is that it’s relative to all columns – as you add more columns, the px width becomes smaller and that will affect which columns appear in the initial uncollapsed list.

    I’ll give this a try.

    –> You may want to add this to your extension doc, so that users know how to use fixed width to force which columns appear in the initial list.

    • This reply was modified 6 years, 11 months ago by IMTanuki.
    • This reply was modified 6 years, 11 months ago by IMTanuki.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, that’s the drawback of % widths… I hope you can find a solution!
    Note that you might have to use the !important flag in the CSS.

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fixed Column Width (?)’ is closed to new replies.