Monday, July 26, 2021
Table Header / Footer and Column Sticky / freeze CSS
table thead {
position: sticky;
inset-block-start: 0; /* "top" */
background-color: grey
}
table tfoot {
position: sticky;
inset-block-end: 0; /* "bottom" */
background-color: grey
}
.stickyColumn {
/* Background color */
background-color: grey
/* Stick to the left */
left: 0;
position: sticky;
/* Displayed on top of other rows when scrolling */
z-index: 1;
}
Subscribe to:
Posts (Atom)