I want to have a table based on the following html:
<table>
<colgroup>
<col class="tableColumnText"/>
<col class="tableColumnText"/>
<col class="tableColumnNumeric"/>
</colgroup>
<tr class="rowHeader">
<td>name</td>
<td>address</td>
<td>cost (£)</td>
</tr>
<tr class="rowOdd">
<td>me</td>
<td>here</td>
<td>500</td>
</tr>
<tr class="rowEven">
<td>you</td>
<td>there</td>
<td>50</td>
</tr>
<tr class="rowOdd">
<td>him</td>
<td>somewhere</td>
<td>80</td>
</tr>
</table>
I'd like to use the class="tableColumnNumeric" to align all text in
that column to be right aligned.
..tableColumnNumeric
{
text-align: right;
}
I'd like to use the class="tableColumnText" to align all text in that
column to be left aligned
..tableColumnText
{
text-align: left;
}
This is great, except I don't want these to affect column headings (in
<tr class="rowHeader">) - I want these to be CENTER aligned.
..rowHeader
{
text-align: center;
}
However...I can't get it to work...it's as if the column over-rides the
row.
Any suggestions? (IE6 main browser client)
Thanks in advance
Griff