I've been working on this issue and can't seem to find a solution. Within my table if I add one particular column it for some reason throws of the header of the table making the header much smaller than the table width. Here is a screen capture:

Here is a snippet of the code I am using:
function callDT() {
var url = "localhost/dataTable001.php";
$.getJSON(url,function(data){
var dt = data.dt;
var table = '<table id="dataTables001"><thead><tr><th>Time</th><th>Number of Cases</th><th>Passed</th><th>Failed</th><th>Class Name</th></tr></thead><tbody>';
$.each(data.dt.time, function(i, time) {
table +="<tr class='even gradeC'><td>"+ time + "</td>"+"<td class='priorityColor'>" + data.dt.total[i] + "</td>"+"<td class='statusColor'>" + data.dt.pass[i] + "</td>"+"<td class='Color'>" + data.dt.fail[i] + "</td>"+"<td class='statusColor'>" + data.dt.class_name[i] + "</td>"+"</tr>";
});
// after the loop, close your tbody and table tags
table += '</tbody></table>';
// then AFTER the loop, you set the data to the table.
$("#dataTables001").html( table )
$('#dataTables001').dataTable( {
"paginate": false,
"scrollY": "260px",
"info": false,
"orderFixed": [[0,'desc']],
The column that seems to throw everything off is "Class Name". It does contain values of longer lengths. If I take the Class Name column out of the table everything aligns correctly.
Any help on this will be appreciated!