Need help with column width on datatables

Need help with column width on datatables

BasementjackBasementjack Posts: 19Questions: 7Answers: 0

http://live.datatables.net/junoroqa/1/

I have a basic datatable that was working fine with width via the style=width:40px part of the th tag.

I then added a tfoot row, and some javascript to add search inputs to the bottom of the table so users can enter more than one search criteria.
When I do this, every column goes back to some default size, and my 'edit' button is pushed off screen on smaller monitors.

Is there a better way to allow users to search against multiple columns at the same time, and or is there a better way to set the column widths so they 'stick'?

Thanks!

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    It sounds like the input element is forcing the width. You could try adding something like tfoot input { width: 100% } into your CSS.

    Allan

  • BasementjackBasementjack Posts: 19Questions: 7Answers: 0

    That worked perfectly! Thanks Allan!

This discussion has been closed.