moondance
12-16-2003, 06:13 AM
I have several tables on my page, but this one table in particular i would like to style using css.
i was wondering how to write it so that only the one table is affected, so if i had the style rules:
table {background-color: #616684;}
thead td {background-color: #ffffff;}
tbody td {background-color: #FFFFFF;}
table
{
border: 0;
width: 100%;
}
td
{
text-align: center;
padding: 5px;
background-color: #FFFFFF;
color: #000066;
}
this would affect only the table i choose - how do i do this?
do i need to label each tr and td in the chosen table as something like:
<table id = "cssTable">
<tr
<td id = "cssTD"></td>
<td id = "cssTD"></td>
etc
thanks
i was wondering how to write it so that only the one table is affected, so if i had the style rules:
table {background-color: #616684;}
thead td {background-color: #ffffff;}
tbody td {background-color: #FFFFFF;}
table
{
border: 0;
width: 100%;
}
td
{
text-align: center;
padding: 5px;
background-color: #FFFFFF;
color: #000066;
}
this would affect only the table i choose - how do i do this?
do i need to label each tr and td in the chosen table as something like:
<table id = "cssTable">
<tr
<td id = "cssTD"></td>
<td id = "cssTD"></td>
etc
thanks