I have a HTML <table>
with a border-radius
and a sticky header using position: sticky
that looks like this:
https://codepen.io/muhammadrehansaeed/pen/OJpeeKP
However, when scrolling with the sticky header, the table rows stick out where the rounded corner of the sticky header lives. See top left of this image:
Is there a way I can maintain the rounded corners when scrolling down with the sticky header or remove the sticky header when the header becomes sticky and moves down from its original position? Ideally, I'd like a CSS only solution.