Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created January 13, 2023 05:57
Show Gist options
  • Save plugin-republic/a0027dee9f209a486a68e51674691c85 to your computer and use it in GitHub Desktop.
Save plugin-republic/a0027dee9f209a486a68e51674691c85 to your computer and use it in GitHub Desktop.
Sticky headers for scrollable grid table in Better Variations
.wcbvp-scrollable {
height: 500px;
}
.woocommerce div.product form.cart table {
border-width: 0 0 1px;
position: relative;
}
.wcbvp-table-wrapper thead th {
position: sticky;
top: 0;
background: #E0E0E0;
}
.wcbvp-table-wrapper tbody th {
position: sticky;
left: 0;
background: E0E0E0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment