We must show the text, which may be in English or Arabic on the page. we are faced with the problem of directing the text.
For the English language, the direction will be from left to right, for the Arabic direction, the direction will be from right to left. We added 'dir = auto' for dynamic operation. [Tools based on the language of the content will be changed)
Exp : <table> <tr> <th>english text</th> <th>arabic text</th> </tr> <tr> <td dir=auto><span>love</span></td> <td dir=auto><span >حبحبحب</span></td> </tr> </table>
These changes work great with Firefox and Chrome. But IE does not support this attribute, and it’s hard for us to find an alternative way to do this.
So our question is how to change the text direction from left to right / right to left based on content (IE)?
We appreciate your help.
source share