• Resolved tossitap

    (@tossitap)


    Hi,

    First of all thank you very much for this greatful forum.

    I think I tried nearly every single advice I found in this forum to solve my problem, unfortunately not successful.

    I‘d like to assign a fixed column width of 120px (this is the size of row 2 which contains html coded links (picture). But it’s not is not working.

    Could you pls. check and advise?

    .tablepress-id-4 .column-2,
    .tablepress-id-4 .column-3,
    .tablepress-id-4 .column-4,
    .tablepress-id-4 .column-5,
    .tablepress-id-4 .column-6,
    .tablepress-id-4 .column-7,
    .tablepress-id-4 .column-8,
    .tablepress-id-4 .column-9,
    .tablepress-id-4 .column-10,
    .tablepress-id-4 .column-11,
    .tablepress-id-4 .column-12,
    .tablepress-id-4 .column-13 {
    text-align: center;
    width: 120px;
    }

    .tablepress-id-4 .row-1 {
    white-space: nowrap;
    }

    [table id=4
    table id=4 datatables_fixedcolumns_left_columns=1

    datatables_fixedcolumns_right_columns=0
    datatables_scrolly=900px

    Thank you very much!!!!

    • This topic was modified 5 years, 2 months ago by tossitap.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tossitap

    (@tossitap)

    There was a typo in my post „[t“ is missing in front of the able id=4 in my post but not on the site. I corrected it.

    • This reply was modified 5 years, 2 months ago by tossitap.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The problem here is that the table is too wide already. You could however try setting a minimum width for the columns as well. For that, please use

    ... {
      text-align: center;
      width: 120px;
      min-width: 120px;
    }

    in the CSS command part.

    Regards,
    Tobias

    Thread Starter tossitap

    (@tossitap)

    It works…. you are awesome, thank you so much!!!

    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!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Table width not working’ is closed to new replies.