For text-align:right; in TD, why does "style" work and "class" not?
- by Will Fastie
If I include this in a table cell:
<td style="text-align: right; font-style: italic; color: maroon;">...
the contents of the cell are aligned as I expect.
If I include the following CSS:
.right-notice { text-align: right; font-style: italic; color: maroon; }
and this cell:
<td class=".right-notice">...
the contents of the cell are not right aligned.
Why is this? What don't I know?
If I change the CSS to replace text-align with float, that works.
Thanks.