Issues with fixed header.

Issues with fixed header.

LeoLeoLeoLeoLeoLeo Posts: 1Questions: 1Answers: 0

Hi there,

I've been trying to get a fixed header on a long set of data but i cant get the header to stay fixed. Ben banging my head around this for a while now. I am missing something here.

Here is a link to a codepen with my table:
https://codepen.io/lawlessleo/pen/yLERJLj

When scrolling down the headers do not stay in place.

Any help would be very much appreciated. Thanks.

Answers

  • rf1234rf1234 Posts: 3,000Questions: 87Answers: 421
    edited December 2022

    I don't see the fixed header extension in your code pen. You would need to include it.

    ....
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/fixedheader/3.3.1/css/fixedHeader.dataTables.min.css"/>
    <script type="text/javascript" src="https://cdn.datatables.net/fixedheader/3.3.1/js/dataTables.fixedHeader.min.js"></script>
    
    
Sign In or Register to comment.