Check out my fiddle here: https://jsfiddle.net/oed1k6m7/. It contains two td
elements inside the thead
.
thead th {
position: -webkit-sticky; /* for Safari */
position: sticky;
top: 0;
}
The code above only makes the first row fixed. How can I make both td
's in the thead sticky?
https://i.sstatic.net/NOD30.png
As shown in the image, currently only one row is fixed while the other remains in place.