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.,js,output

Thank you all.


  • kthorngrenkthorngren Posts: 19,864Questions: 26Answers: 4,685

    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:


  • 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.