mogomuta
09-30-2008, 02:15 AM
I have a problem with table columns. Columns 1 & 2 are left
justified, and column 3 is right justified. Currently, the code is:
<colgroup style="text-align: left"></colgroup>
<colgroup style="text-align: left"></colgroup>
<colgroup style="text-align: right"></colgroup>
<tr>
<td>this column is left</td>
<td>this column is left</td>
<td>this column is right</td>
</tr>
It works in IE, but Firefox does not like that, and all columns show
as left justified.
I know I can use <td style="text-align: right"> but the table is
over 500 rows, and I don't want to make 500 changes.
Can I right-justify just the third column in my .css file? If so,
how?
justified, and column 3 is right justified. Currently, the code is:
<colgroup style="text-align: left"></colgroup>
<colgroup style="text-align: left"></colgroup>
<colgroup style="text-align: right"></colgroup>
<tr>
<td>this column is left</td>
<td>this column is left</td>
<td>this column is right</td>
</tr>
It works in IE, but Firefox does not like that, and all columns show
as left justified.
I know I can use <td style="text-align: right"> but the table is
over 500 rows, and I don't want to make 500 changes.
Can I right-justify just the third column in my .css file? If so,
how?