I am using jQuery datatable
<div id="wrapperDiv">
<table id="dataTable"> <!-- data --> </table>
<div/>
wrapper's width is 960 px and table goes to 1080 px (it has broader data)
I tried
- setting width: 100% in table tag inline CSS
- setting overflow-x auto; in table tag
And promising looking solutions from
jQuery DataTables: control table width
How to set column widths to a jQuery datatable?
Jquery DataTables - Table width is shorter than dataTable_wrapper width
None of them worked for me, As a workaround I increased the width of wrapper DIV to fit the data table. Any help?