FixedHeader example Horizontal page scrolling

This example shows FixedHeader operating with a wide table that causes the page to scroll horizontally (note you may need to resize your browser window for page scrolling to occur, particularly if you have a large monitor!

No additional initialisation is required, FixedHeader will automatically correctly position the fixed header and footer (if used) of the table.

The Javascript shown below is used to initialise the table shown in this example:

1
2
3
4
5
$(document).ready(function() {
    $('#example').DataTable( {
        fixedHeader: true
    } );
} );

In addition to the above code, the following Javascript library files are loaded for use in this example: