I have built an html table using the following example as a guide, however I haven't been able to figure out how to make the head fixed so that it remains visible as a user scrolls:
https://jsfiddle.net/thatOneGuy/u5bvwh8m/16/
I have tried using CSS to control
.resizable{overflow-y: auto; position: sticky; height: 750px;}
I have also tried adding custom style to the head, however that breaks the resizing:
table thead tr{
display:block;
}
table th,table td{
width:100px;//fixed width
}
table tbody{
display:block;
height:200px;
overflow:auto;//set tbody to auto
}
Any help is very much appreciated.