I want to achieve the following :
If not Arabic
+--------------------------------------+
| Price 500 |
+---------------------------------------
If arabic
+--------------------------------------+
| 500 Price |
+---------------------------------------
Currently "500" is in a div and "Price" is in a div.
In conclusion, I either have to duplicate the code (to handle the fact that each div can be on the left or on the right) or to create it dynamically with JS (meh). I want a simpler solution because if I have a lot more properties than just "Price", the code will be fatuously complicated.
You need to change direction in style to rtl for Arabic. See this example:
<table style="direction: ltr">
<tr>
<td>Price</td>
<td>500</td>
</tr>
</table>