Anarchist
03-16-2005, 01:01 AM
I am trying to use CSS to colour the background of certain table header cells, only the ones I want coloured though.
Everything I have tried colours all my header cells..ouch !
Table code:
<tr>
<th>Example1</th>
<th>Example2</th>
<th>Example3</th>
<th>Example4</th>
<th>Example5</th>
<th>Example6</th>
</tr>
My CSS:
BODY {
color: #111111;
background-color: White;
font-family: "Arial Narrow", sans-serif;
font-size: medium;
font-style: italic;
text-align: justify;
}
h1{
border: dotted #DC143C;
}
}
TH{
background-color: green;
}
Everything I have tried colours all my header cells..ouch !
Table code:
<tr>
<th>Example1</th>
<th>Example2</th>
<th>Example3</th>
<th>Example4</th>
<th>Example5</th>
<th>Example6</th>
</tr>
My CSS:
BODY {
color: #111111;
background-color: White;
font-family: "Arial Narrow", sans-serif;
font-size: medium;
font-style: italic;
text-align: justify;
}
h1{
border: dotted #DC143C;
}
}
TH{
background-color: green;
}