Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #table-container {
- overflow-y: scroll;
- height: 100vh; /* or whatever */
- }
- #table th {
- position: sticky;
- position: -webkit-sticky; /* for Safari */
- top: 0;
- }
- /* yup that's it. lost the link to the genius who wrote it */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement