Buongiorno,

ho un banale problema (spero per voi) Vorrei associare diversi fogli di stile a seconda della tabella che utilizzo.

Questo è il css per la seconda tabella:

Codice PHP:
table,th,td{
    
border:1px solid #666;
    
border-collapse:collapse;
}
table{
    
border:none;
    
border-top:1px solid #000;
}
thead th{
    
background:url(images/greychrome.giftop left repeat-#fff;
    
padding:5px 10px;
    
font-size:90%;
    
text-transform:uppercase;
    
color:#333;
}
tbody td,tbody th{
    
font-size:85%;
    
padding:5px 10px;
    
background:#eee;
}
tbody th{
    
background:url(images/bluechrome.giftop left repeat-#fff;
    
color:#333;
}
tbody tr.odd td{
    
background:#ddd;
}
tbody tr.odd th{
    
background:url(images/greenchrome.giftop left repeat-#fff;
    
color:#333;
}
tfoot td,tfoot th{
    
border:none;
    
padding-top:10px;
}
caption{
    
font-family:Tahoma;
    
text-align:left;
    
text-transform:uppercase;
    
font-size:130%;
    
padding:10px 0;
    
color:#036;
}
table a:link{
    
color:#369;
}
table a:visited{
    
color:#036;
}
table a:hover{
    
color:#000;
    
text-decoration:none;
}
table a:active{
    
color:#000;

Essendoci i valori table,tbody, stessi valori che ho nel css principale, questo mi intacca tutta la struttura del sito !

Come posso impostare l'id della tabella nel css e usare questo css solo per una determinata tabella ?

Grazie mille per l'aiuto.