CSS properties - unicode-bidi

revision:


unicode-bidi property

- is used together with the direction property to set or return whether the text should be overridden to support multiple languages in the same document.

CSS syntax : unicode-bidi: normal | embed | bidi-override | initial | inherit;

Property values:

normal : the element does not open an additional level of embedding. This is default

embed : for inline elements, this value opens an additional level of embedding

bidi-override : for inline elements, this creates an override. For block elements, this creates an override for inline-level descendants not within another block element

isolate : the element is isolated from its siblings

isolate-override :

plaintext :

initial : sets this property to its default value.

inherit : inherits this property from its parent element.

JavaScript syntax: object.style.unicodeBidi="bidi-override"

example: unicode-bidi property
Some text. Default writing direction.
Some text. Right-to-left direction.
code:
                    <div>
                        <div class="DIV-A">Some text. Default writing direction.</div>
                        <div class="DIV-B">Some text. Right-to-left direction.</div>
                    </div>
                    <style>
                    div.DIV-B {direction: rtl; unicode-bidi: bidi-override;}
                    </style>