Column Header widths in IE6
Column Header widths in IE6
eyre.michael
Posts: 21Questions: 0Answers: 0
I am working a site that need to use IE6. The table that I have has both X scrolling and Y scrolling. When the table is displayed, the column headers are not aligned with the table rows. This works fine in FF, but not IE6. Unfortunately, I need to make sure it is working in IE6.
I am guess that there is an issue with CSS, but I am not able to figure it out.
Thanks
Mike
I am guess that there is an issue with CSS, but I am not able to figure it out.
Thanks
Mike
This discussion has been closed.
Replies
Allan
The problem is only with IE6, for Firefox or Chrome.
[code]
$(document).ready(function() {
// Define the alarm table datatable parameters
_resultTable = $('#result-table').dataTable({
sScrollY: "400px",
bPaginate: false,
bAutoWidth: false,
oLanguage: {
sSearch: "Search:",
sZeroRecords: "No results match the criteria",
sInfo: "Grid contains _TOTAL_ entries"
},
aaData: [***array of column values ***],
sScrollX: "100%",
sScrollCollapse: true,
bSort: true,
aoColumns: [
{ bSearchable: false,
bVisible: false
},
null,
{ sWidth: "200px",
sSortDataType: "dom-text",
sType: "date-NNN-time"},
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
]
});
_resultTable.fnAdjustColumnSizing();
_resultTable.fnDraw();
});
[/code]
I needed to make a change to a table width and after I made it smaller the column headers do not match the table body column widths for some of the columns. This problem is only with IE6, but I need to get it to work there.
I have bAutoWidth set to false and a few of the column widths are specified with the sWidth parameter, but they seem to be ignored. I do not have the parameters in double quotes, but I will test it with that change.
Any help would be greatly appreciated. Thanks