Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Direction ltr in a rtl HTML page

I am trying to display a negative number in a rtl HTML page.

The label doesn't seem to respond to my direction: ltr

I have written a jsFiddle to display the opposite scenario (trying to display from right to left).

like image 359
devmonster Avatar asked Sep 23 '12 13:09

devmonster


People also ask

How do you convert rtl to LTR?

Shortcuts: Ctrl+Shift+J -- switch to RTL Ctrl+Shift+E -- switch to LTR Note 1: If one or both of the shortcuts don't work, it means that something else is mapped to them.

How do you use direction rtl?

Use rtl for languages written from right to left (like Hebrew or Arabic), and ltr for those written from left to right (like English and most other languages).

What is LTR and rtl?

For example, the en-US locale (for US English) specifies left-to-right. Most Western languages, as well as many others around the world, are written LTR. The opposite of LTR, RTL (Right To Left) is used in other common languages, including Arabic ( ar ) and Hebrew ( he ).

What does DIR LTR mean in HTML?

Attribute definitions dir = LTR | RTL [CI] This attribute specifies the base direction of directionally neutral text (i.e., text that doesn't have inherent directionality as defined in [UNICODE]) in an element's content and attribute values. It also specifies the directionality of tables.


1 Answers

Add unicode-bidi: embed; to your CSS. Should do the trick - updated Fiddle

You can find usage here

like image 157
Henrik Janbell Avatar answered Oct 14 '22 20:10

Henrik Janbell