I have created an HTML table with two columns. I want the first column containing text to be right aligned, but I want the second column to stay left aligned as it contains check boxes. For presentation it would look, but I’ve no idea. I have tried creating a td class="column1" and then text-align: right; in the CSS, but no luck.
How can I do it?
HTML
<td class="column1">Retrieve Logs:</td>
<td class="column2"><input type=checkbox name="getcamlogs" checked="checked"></td>
CSS
td.column1 {
text-align: right;
}