column width

column width

MazecMazec Posts: 48Questions: 2Answers: 0
edited October 2023 in DataTables 1.10

Hi, I'm having trouble displaying the columns. I need the width of the column to adapt to the date, for example so that the first ID column is not unnecessarily wide.

I recommend opening the sample at a higher resolution, it's completely broken on a small one, which is probably related to it.

https://live.datatables.net/dowepoce/2/watch?html,js,output

Thank you all.

Replies

  • kthorngrenkthorngren Posts: 21,322Questions: 26Answers: 4,948

    I removed style='table-layout:fixed;' from the table tag and added the following CSS in the CSS tab:

    thead input {
      width: 100%;
    }
    

    Here is the updated example:
    https://live.datatables.net/xudimuka/1/edit

    Kevin

  • MazecMazec Posts: 48Questions: 2Answers: 0

    It works perfectly, thank you. The search does not work, but I will create a separate ticket for that. Thanks.

Sign In or Register to comment.