datatable column size width code example
Example 1: datatables change width of columns
$('#example').dataTable( {
"autoWidth": false, // might need this
"columns": [
{ "width": "20%" },
null, // automatically calculates
null // remaining width
]
} );
Example 2: data table column width
$('#example').dataTable({
"columnDefs": [
{ "width": "20%", "targets": 0 }
]}
);