I have a simple two-column table; I want to align the data in the first column on the right and be able to style the two elements individually. Perhaps the table is not the best solution here, but I do not know what else to try. I tried with column groups, but this does not work. Even when I try to apply text-align: right to the 'label' element.
<table> <colgroup> <col class="label" /> <col class="price" /> </colgroup> <tr> <td><label>Subtotal:</label></td> <td>$135.00</td> </tr> <tr> <td><label>Taxes:</label></td> <td>$11.23</td> </tr> </table>
source share