SHARE
TWEET

Untitled

a guest Apr 20th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #table-container {
  2.   overflow-y: scroll;
  3.   height: 100vh; /* or whatever */
  4. }
  5.  
  6. #table th {
  7.   position: sticky;
  8.   position: -webkit-sticky;  /* for Safari */
  9.   top: 0;
  10. }
  11.  
  12. /* yup that's it.  lost the link to the genius who wrote it */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top