Unicode-bidi property

Last updated: 2026-09-13

unicode-bidi Unicode-bidi property

The unicode-bidi CSS property controls the Unicode Bidirectional Algorithm for text, handling cases where text of different directions (such as English and Arabic) is mixed. It can change the embedding level of text, override direction, or detach an element from its parent's direction context, making it a key property for complex text direction on internationalized sites.

Category
Initial Valuenormal
InheritedNo
Applies To
Animation Type
CSS VersionCSS2
StatusStandard

📝 Syntax

unicode-bidi: normal | embed | isolate | bidi-override | isolate-override | plaintext;

⚙️ Values

ValueTypeDescription
normal | embed | isolate | bidi-override | isolate-override | plaintextKeywordBidirectional text handling modes

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
unicode-bidi v10 v12 v1 v1 v1
Supported in all major browsers
Tip: isolate is the most commonly used value: it keeps the element's direction from affecting surrounding text and vice versa, which suits embedding third-party content.
Important: bidi-override forcibly reverses the text direction and can scramble the display order; unless you really need it, prefer isolate.

❓ FAQ

QHow do the unicode-bidi and direction properties relate to each other?
Adirection sets the writing direction of the text; unicode-bidi controls how that direction interacts with the surrounding text. The two are normally used together: direction specifies the direction and unicode-bidi specifies the isolation or override behavior.
QWhen do I need the unicode-bidi property for mixed-direction text?
AWhen a page mixes text of different directions (such as Arabic embedded in English), or when you need to embed third-party content without affecting the overall layout, use unicode-bidi: isolate to isolate the direction context.
QWhat is the difference between unicode-bidi: isolate and bidi-override?
Aisolate treats the element's internal bidirectional text as an independent paragraph so directions do not affect each other — ideal for embedded third-party or mixed-language content; bidi-override forces all character order according to direction, which easily scrambles the expected display and is only for special cases.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏