html5 - HTML Right to left based on language of data -


i have use case paragraph of text in language, based on data input user elsewhere. need display in right-to-left or left-to-right based on language of value.

note: not referring language of whole page. need set direction particular paragraph based on data's language.

is there way without using javascript?

do mean ?

#rtl {    direction: rtl;  }  #ltr {    direction: ltr;  }
<p id="rtl">foo</p>  <p id="ltr">bar</p>


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -