I am facing an issue with a single table that has a fixed header and scrolling body. The problem arises when the body extends beyond the header while scrolling. I have provided a zoomed-in clip of the problem. Can anyone offer a solution for this without using plugins or third-party solutions?
Here is the link to view the issue: https://i.sstatic.net/pDsA6.png
This is the CSS code for my table:
.tableFixHead {
overflow: auto;
height: 74vh;
}
.tableFixHead tr th {
position: sticky;
top: 0;
}
.tableFixHead table {
margin-top: 5px;
}
.tableFixHead td:first-child {
position: inherit;
left: -1px;
}