direction :
ltr |
rtl
Compatibility: IE5+
Version: Level 2 Inherited: Yes
The direction property allows you to choose the direction that the text will flow
(i.e., left-to-right or right-to-left).
For example, this can be applied to embedded text, quotes, and strings.
It can also be applied to the order of the columns in a table or to dictate the placement of
text when using the text-align property.
The default for the flow of text is left to the right, such as for English or Spanish.
However, certain languages, such as Chinese and Hebrew, flow from the right to the left.
If you wish to apply the direction property to an inline text, you must set the
unicode-bidi property either to the bidi-override or embed values.
ltr
The ltr value sets the direction to be left-to-right.
This is the default.
rtl
The rtl value sets the direction to be right-to-left.
Code:
blockquote.eng { direction: ltr; }
blockquote.heb { direction: rtl; }
or
<blockquote style="direction: rtl; unicode-bidi: bidi-override;">
ABC DEF GHI JKL MNO PQR STV UWX YZ
</blockquote>
Output:
ABC DEF GHI JKL MNO PQR STV UWX YZ
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information
|