Wrong table caption position
Wrong table caption position
johnny2002
Posts: 8Questions: 0Answers: 0
When use y-scrolling, the position of the caption of table is wrong. See screenshot.
This discussion has been closed.
Replies
[code]
Employees
GPN
Last name
First name
Organization Unit
00293796
Meier
43225759
Zhou
00117046
Blaschette
43311727
Perion
00119007
Weideli
00300130
Zuber
43232756
Liu
00110809
Spinner
-0000001
Internal user
00836079
Klemenz
00131633
Vaclena
00358935
Nyffeler
00128565
Grau
00292355
Seger
00735221
Moor
$(document).ready(function() {
$(".dataTables").dataTable( {
"sScrollY": "200px",
"bPaginate": false,
"sDom": 't'
} );
});
[/code]
Good point - I hadn't considered table captions when used with scrolling. I'll fix this in the next beta or final release - which ever happens :-)
Regards,
Allan
Regards,
Allan
[code]
caption
{
caption-side:bottom;
}
[/code]
I've just added the code required to address this issue. It adds a few bytes to the DataTables code base, but I think that captions are fundamental to good accessible tables, which is what DataTables is all about, so its worth it. This will be in 1.9.1.
Allan