Fix sticky th
This commit is contained in:
parent
8bb306e44d
commit
232a50ac20
11
style.css
11
style.css
|
@ -192,29 +192,28 @@ table.image-table img {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
border: 2px solid gray;
|
border: 2px solid gray;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
.lista-mezzi thead{
|
.lista-mezzi thead{
|
||||||
background-color: #282828;
|
background-color: #282828;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
display: table;
|
|
||||||
width: 100%;
|
|
||||||
table-layout: fixed;
|
|
||||||
}
|
}
|
||||||
.lista-mezzi th, .lista-mezzi td{
|
.lista-mezzi th, .lista-mezzi td{
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px solid gray;
|
border: 1px solid gray;
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
.lista-mezzi thead th{
|
.lista-mezzi thead th{
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
.lista-mezzi thead tr{
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
.lista-mezzi tbody{
|
.lista-mezzi tbody{
|
||||||
display: block;
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
.lista-mezzi tbody tr{
|
.lista-mezzi tbody tr{
|
||||||
|
|
Loading…
Reference in New Issue