Set the dir=rtl
attribute on the td
element: <td dir=rtl>...</td>
. The HTML attribute should be used instead of the corresponding CSS property, since the basic writing direction is not just a presentational suggestion but something that depends on the content.
You could also set it on an inner element, e.g. <td><div dir=rtl>...</div></td>
. But e.g. code like <TD><span dir="rtl"><p>...
won’t work, sice the <p>
closes the open span
element, so the span
element has no content and its attributes have no effect.
Added info: Also make sure that no CSS or HTML setting is overriding the desired effect. For example, align=left
on the tr
element would set the alignment of all cells to left alignment, and the dir=rtl
attribute won’t “win” it on its own. (If there is such an attribute and you can’t remove it, set the cell alignment explicitly, using align=right
in HTML.)