The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Text (International) |
| Previous Style: cursor | Next Style: display |


direction

Determines the text direction. It enables you to print characters either from left-to-right (as used in most languages) or from right-to-left (as used in Hebrew and Arabic, among others).

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later 5.0 and later Not supported

See Also:

unicode-bidi

Possible Values:

ltr
Text is displayed left-to-right.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later 5.0 and later Not supported

rtl
Text is displayed right-to-left.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later 5.0 and later Not supported

Example:
<DIV STYLE="unicode-bidi: embed; direction: rtl">
Which way does this go?
</DIV>
<DIV STYLE="unicode-bidi: bidi-override; direction: rtl">
Which way does this go?
</DIV>
How It Looks:
Which way does this go?
Which way does this go?

| Index | Current Category: Text (International) |
| Previous Style: cursor | Next Style: display |