Search code examples
cssfarsi

Set position Persian letter in text only with css


I have text like this:

enter image description here

I want to show this text (36 و 534 12) in a div

if set direction: rtl for div, the text is shown like this

enter image description here

and if set direction: ltr for div, the text is shown like this

enter image description here

how can I show this text like first image in my div only with css ?


Solution

  • Usage of left-to-right mark should solve it.

    <div>36 و&lrm; 534 12</div>