HTML Direction rtl issue

user3030932 picture user3030932 · Nov 25, 2013 · Viewed 15.9k times · Source

I am working on a Multilanguage website , where in a table one of the td needs to be arabic stuff - which we know need to start from right. I tried it in many ways but couldnt crack it . Would be really appreciated if some one could help me :( .

Here in this text , the content should start from right..

 <TD><div dir="rtl">
  خیز ای عشق مجرد مهر را از سر بگیر<br/>
مردم و خالی شدم ز اقرار و از انکار خود
      </div></TD>

Answer

Praveen Kumar Purushothaman picture Praveen Kumar Purushothaman · Nov 25, 2013

The code is:

<html dir="rtl">

Updated answer using CSS:

Try this:

<span style="direction:rtl;">Arabic Text</span>