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
Post a Comment