• Resolved souriceau44

    (@souriceau44)


    Hello

    I want to define a specific width (200 px) of a column in a table.
    I don’t have the “column width” line in the form
    I think I use line “CSS class (es)” in the column parameters but I don’t know how to write it
    for example I wrote
    column width: 300px
    but it doesn’t matter
    can you please help me and tell me what to write.

    thank you in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hello again.

    Column width option (in column settings) is only available when you enable “Limit Table Width” in the Display tab above the table. This option becomes visible when you disable the Scrollable slider.

    Unfortunately, if you need to define custom column width, the table cannot be horizontally scrollable.

    The “Custom class” field you see in the column settings is actually the field where you define the class name (for example “wdth”), then you need to define that class in Custom JS and CSS/Custom CSS field. Something like:


    .wdth {
    width: 150px !important;
    }

    Kind regards.

    Thread Starter souriceau44

    (@souriceau44)

    Hello
    Thank you for the details.
    I will keep the scrolling horizontal and leave the width of the identical basic columns.

    have a good day

    Thread Starter souriceau44

    (@souriceau44)

    thank you

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