Spostato bordo tabella in stylesheet

This commit is contained in:
2025-11-13 08:47:24 +01:00
parent 1867b0e7d1
commit 4f64cb71eb
2 changed files with 5 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ function listPizze(){
.then((response) => response.json()) .then((response) => response.json())
.then((pizze) => { .then((pizze) => {
// Creiamo la tabella // Creiamo la tabella
let table = '<table border="1"><tr><th>ID</th><th>Nome</th><th>Prezzo</th><th>Azioni</th></tr>'; let table = '<table><tr><th>ID</th><th>Nome</th><th>Prezzo</th><th>Azioni</th></tr>';
// Aggiungiamo ogni pizza come riga della tabella // Aggiungiamo ogni pizza come riga della tabella
pizze.pizze.forEach(pizza => { pizze.pizze.forEach(pizza => {

View File

@@ -14,6 +14,10 @@ header{
margin-bottom: 15px; margin-bottom: 15px;
} }
table, td, th{
border: 1px solid black;
}
td, th{ td, th{
padding: 5px; padding: 5px;
} }