table heade sticky

This commit is contained in:
mic 2024-05-12 22:18:59 +02:00
parent 6136e0a056
commit a57a07666a

View file

@ -11,15 +11,13 @@
table { table {
background-color: #1C1B22; background-color: #1C1B22;
border: 1px solid #ccc;
} }
table th { table th {
background-color: #4c4e58; background-color: #4c4e58;
border: 1px solid rgb(251, 251, 254); border: 1px solid rgb(251, 251, 254);
color: rgb(194, 194, 194); color: rgb(194, 194, 194);
padding: 8px;
text-align: left;
cursor: pointer;
} }
table tr:nth-child(even) { table tr:nth-child(even) {
@ -33,6 +31,11 @@ table {
border: 1px solid #ccc; border: 1px solid #ccc;
} }
thead {
position: sticky;
top: 0;
}
table tr { table tr {
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
} }
@ -40,6 +43,7 @@ table tr {
table th { table th {
padding: 8px; padding: 8px;
text-align: left; text-align: left;
cursor: pointer;
} }
table td { table td {