Created
December 17, 2018 18:40
-
-
Save electricg/d2b8f30a20908d6165826f5eb1e721fe to your computer and use it in GitHub Desktop.
Revisions
-
electricg created this gist
Dec 17, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ .table-wrapper { /* border: 1px solid #ccc; */ overflow: scroll; max-width: 90vw; max-height: 90vh; } table { border-collapse: collapse; } th, td { border: 1px solid #ccc; padding: 1rem; } th { background: #eee; } thead th:first-child, tbody th { left: 0; position: sticky; } thead th:first-child { z-index: 1; } thead th { top: 0; position: sticky; }