files/en-us/web/css/reference/properties/unicode-bidi/index.md
The unicode-bidi CSS property, together with the {{cssxref("direction")}} property, determines how bidirectional text in a document is handled. For example, if a block of content contains both left-to-right and right-to-left text, the user-agent uses a complex Unicode algorithm to decide how to display the text. The unicode-bidi property overrides this algorithm and allows the developer to control the text embedding.
{{InteractiveExample("CSS Demo: unicode-bidi")}}
unicode-bidi: normal;
unicode-bidi: bidi-override;
unicode-bidi: plaintext;
unicode-bidi: isolate-override;
<section class="default-example" id="default-example">
<p class="transition-all" id="example-element">
בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ.
</p>
</section>
The unicode-bidi and {{cssxref("direction")}} properties are the only properties that are not affected by the {{cssxref("all")}} shorthand.
[!WARNING] This property is intended for Document Type Definition (DTD) designers. Web designers and similar authors should not override it.
/* Keyword values */
unicode-bidi: normal;
unicode-bidi: embed;
unicode-bidi: isolate;
unicode-bidi: bidi-override;
unicode-bidi: isolate-override;
unicode-bidi: plaintext;
/* Global values */
unicode-bidi: inherit;
unicode-bidi: initial;
unicode-bidi: revert;
unicode-bidi: revert-layer;
unicode-bidi: unset;
normal
embed
bidi-override
isolate
U+FFFC Object Replacement Character, i.e., like an image.isolate-override
isolate keyword to the surrounding content and the override behavior of the bidi-override keyword to the inner content.plaintext
{{CSSInfo}}
{{csssyntax}}
.bible-quote {
direction: rtl;
unicode-bidi: embed;
}
<div class="bible-quote">A line of text</div>
<div>Another line of text</div>
{{EmbedLiveSample('Examples')}}
{{Specifications}}
{{Compat}}