I have the following Sass snippet in which I want the <thead>
to float as the table scrolls. This works properly in Safari, but not in Chrome Version 58.0.3029.110 (64-bit)
.
I know that Chrome has had on-again-off-again support for sticky
, and currently supports it, but is it final? Is this a Chrome bug or do I need a different solution? (I prefer the CSS approach rather than Javascript because it's more performant.)
.table {
thead {
background: white;
position: sticky;
top: 0;
z-index: 10;
}
}