I'm using Datatables. Columns have auto width, I want to make their width smaller. I tried some things, but it doesn't change. My table is:
$(document).ready(function () {
$('#example').dataTable({
"pagingType": "full_numbers",
"bSort": true,
"sDom": 'T<"clear">lfrtip',
"tableTools": {
"sSwfPath": "http://cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls_pdf.swf",
"aButtons": [
"csv",
{
"sExtends": "pdf",
"sButtonText": "Print PDF",
"mColumns": "visible"
},
"xls"
]
},
},
"columnDefs": [{
"width": "5%"
}]
});
});