Skip to content

Instantly share code, notes, and snippets.

@electricg
Created December 17, 2018 18:40
Show Gist options
  • Save electricg/d2b8f30a20908d6165826f5eb1e721fe to your computer and use it in GitHub Desktop.
Save electricg/d2b8f30a20908d6165826f5eb1e721fe to your computer and use it in GitHub Desktop.

Revisions

  1. electricg created this gist Dec 17, 2018.
    6,527 changes: 6,527 additions & 0 deletions index.html
    6,527 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
    35 changes: 35 additions & 0 deletions jsbin.tadadeh.css
    Original 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;
    }