Sajjad Arash
Sajjad Arash

Reputation: 349

How can I write Persian words Left-to-Right?

I need to write Persian words in left to right mode for write Math formula in textarea html css but I cant get it working with direction:ltr; or other solutions to fixed it with direction.

I tested align-text, direction, dir Attribute and another things...

I want my result is equals to this:

User writes: سجاد+آرش+تست+تست

HTML input Show this: تست + تست+ آرش + سجاد

Upvotes: 0

Views: 188

Answers (1)

Hassan Ebrahimi
Hassan Ebrahimi

Reputation: 1

It's because when you write تست+آرش , the HTML see it one word and just when you use space (" ") HTML break your word.

You can place your Persian words inside ( and ).

So instead using this: سجاد+آرش+تست+تست

use this: (سجاد)+(آرش)+(تست)+(تست)

Upvotes: 0

Related Questions