HTML CSS examples for CSS Property:unicode-bidi
The unicode-bidi CSS property handles bidirectional text.
The following table summarizes the unicode-bidi Property.
Item | Value |
---|---|
Default value: | normal |
Applies to: | All elements |
Inherited: | No |
Animatable: | No. |
The syntax of the property is as follows:
direction: bidi-override | embed | normal | initial | inherit
The following table describes the values of this property.
Value | Description |
---|---|
bidi-override | override inline elements. |
embed | If the element is inline, this value opens an additional level of embedding |
normal | doesn't offer an additional level of embedding with respect to the bidirectional algorithm. |
initial | Sets this property to its default value. |
inherit | take the value of its parent element unicode-bidi property. |
The example below shows the direction property.
<!DOCTYPE html> <html lang="en"> <head> <title>Example of CSS unicode-bidi property</title> <style type="text/css"> p {<!-- w w w . j a va 2 s . co m--> unicode-bidi: bidi-override; direction: ltr; } p.reverse { unicode-bidi: bidi-override; direction: rtl; } </style> </head> <body> <p>This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. </p> <p class="reverse">This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. </p> </body> </html>