fixed table and search
This commit is contained in:
@@ -79,6 +79,50 @@
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* --- FIX colonne lunghe: tronca con ellissi --- */
|
||||
#tabellaMescole {
|
||||
table-layout: fixed;
|
||||
/* fondamentale: rende fisse le larghezze */
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
#tabellaMescole th,
|
||||
#tabellaMescole td {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
/* una riga sola */
|
||||
}
|
||||
|
||||
/* Larghezze consigliate (aggiusta se vuoi) */
|
||||
#tabellaMescole th:nth-child(2),
|
||||
#tabellaMescole td:nth-child(2) {
|
||||
/* Nome Mescola */
|
||||
width: 260px;
|
||||
max-width: 260px;
|
||||
}
|
||||
|
||||
#tabellaMescole th:nth-child(3),
|
||||
#tabellaMescole td:nth-child(3) {
|
||||
/* Nome Uscita */
|
||||
width: 260px;
|
||||
max-width: 260px;
|
||||
}
|
||||
|
||||
/* facoltativo: azioni sempre leggibili */
|
||||
#tabellaMescole th:nth-child(5),
|
||||
#tabellaMescole td:nth-child(5) {
|
||||
width: 230px;
|
||||
max-width: 230px;
|
||||
}
|
||||
|
||||
/* ID sempre piccolo */
|
||||
#tabellaMescole th:nth-child(1),
|
||||
#tabellaMescole td:nth-child(1) {
|
||||
width: 70px;
|
||||
max-width: 70px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user