use text-align smartly (if english dir=ltr if arabic dir=rtl)

后端 未结 5 1430
北海茫月
北海茫月 2020-12-02 19:45

I have a community web site and I want that users write

  • English posts with direction LTR / text-align: left) and
  • Arabic posts with direction RTL / tex
5条回答
  •  旧时难觅i
    2020-12-02 19:56

    it's very easy. You can use dir='auto' Attribiute in Html Element. So if your text is Arabic or Persian Text use RTL and if your text is English automatic text use LTR.

    Hello

    سلام

提交回复
热议问题