Need help with column width on datatables
Need help with column width on datatables
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
It sounds like the input element is forcing the width. You could try adding something like
tfoot input { width: 100% }
into your CSS.Allan
That worked perfectly! Thanks Allan!