Aggiunto padding tabelle e stile bottoni

This commit is contained in:
2025-11-12 08:32:33 +01:00
parent 687cde6c35
commit 2706480551
2 changed files with 15 additions and 2 deletions

View File

@@ -32,8 +32,8 @@ function listPizze(){
<td>${pizza.id}</td> <td>${pizza.id}</td>
<td>${pizza.nome}</td> <td>${pizza.nome}</td>
<td>${pizza.prezzo.toFixed(2)}€</td> <td>${pizza.prezzo.toFixed(2)}€</td>
<td><button onclick="editPizza(${pizza.id})">Modifica</button> <td><button class="editBtn" onclick="editPizza(${pizza.id})">Modifica</button>
<button onclick="deletePizza(${pizza.id})">X</button></td> <button class="delBtn" onclick="deletePizza(${pizza.id})">X</button></td>
</tr>`; </tr>`;
}); });

View File

@@ -5,3 +5,16 @@ body{
body, button{ body, button{
font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} }
td, th{
padding: 5px;
}
.editBtn{
background-color: aqua;
}
.delBtn{
background-color: red;
color: white;
}