In this section, I have a table and I am trying to keep the header fixed while scrolling.
JavaScript
<script>
$('#scroll').scroll(function(){
if ($('#scroll').scrollTop() > 10){
$("thead").css({
position: 'fixed',
top: '68px'
});
}else{
$('thead').css({
position: 'static'
});
}
});
</script>
The functionality is working perfectly, but there seems to be a change in design.
Check out the live demo here
If anyone could provide assistance, it would be greatly appreciated.
Thank you in advance.
EDIT