The current issue looks like this As shown in the picture, the content is still a little bit visible when it is scrolled behind the header. How do i solve this and make the content not visible when scrolled behind the sticky header?
.tableUpdates {
overflow-y: auto;
height: 250px;
}
.tableUpdates thead th {
position: sticky;
margin-top:0px;
top: 0;
background: #DC3545;
}
<div class="col-md-4 pr-0 tableUpdates">
<table class="table table-bordered table-hover">
<thead class="bg-danger text-light">
<tr>
<th>Header</th>
</tr>
</thead>
<tbody>
.....some rows
</tbody>
</table>
</div>
