Ciao,
avrei una domanda riguardo alla gestione css delle tabelle...
Nello Specifico vorrei ad esempio costruire una tabella come la seguente
[table]
[thead]
[tr]
[th]Intestazione1[/th]
[th]Intestazione2[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td]00[/td]
[td]01[/td]
[/tr]
[tr]
[td]00[/td]
[td]01[/td]
[/tr]
[/tbody]
[/table]
Avrei però necessita di dare alla prima riga un colore diverso dalle altre.
Per fare ciò vorrei usare i css e quindi avevo pensato di dare una classe alla tabella, ma forse sarebbe meglio un id?
Potrei ad esempio dare una classe
table class=miatabella
e fare un css così
table .miatabella th [background-color: red;]
table .miatabella td [background-color: white;]