The unicode-bidi
property handles the rendering
of bi-directional text in HTML.
The unicode-bidi
property is used
together with the direction
property
to create embedded text with different
text directions (right-to-left and left-to-right) in one element.
unicode-bidi: normal|embed|bidi-override;
direction
property.
Acts the same as embed
when applied to inline elements.
For block-level elements, it overrides the browser's
bi-directional text algorithm
and flows the text inside any inline children direction
property.
unicode-bidi |
Yes | Yes | Yes | Yes | Yes |
<!DOCTYPE html>
<html>
<head>
<style>
div.ex1 {<!-- www . j a v a2s.com-->
direction: rtl;
unicode-bidi: bidi-override;
}
</style>
</head>
<body>
<div>Some text.</div>
<div class="ex1">Some text. </div>
</body>
</html>