I'm having a problem with DataTables integrated in Bootstrap 3 and horizontal scrolling is enabled
Here is my fiddle
DataTables Initalization
/* Data Table Initialization */
var equipmentDataTable = $('#equipmentTable').dataTable({
"aoColumnDefs": [{ "sClass": "text-center", "aTargets": [ 0,25 ] },
{ 'bSortable': false, 'aTargets': [ 25 ] }],
"sScrollX": '100%'
});
I don't know why the header is not aligned with the body of the table. Thanks in advance
thintheadonly. If you check the CSS it is obviously.tablethat makes problems - it has padding on> thead > tbody > tr > thbut not on thetd's, and for some reason fixed widths is injected to theth's. I would suggest you create your own.tableclass from scrath with this starting point -> jsfiddle.net/5KbLt.