Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project










PROPERTY: direction

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 STU VWX YZ
</blockquote>

 
Output:
ABC DEF GHI JKL MNO PQR STU VWX YZ



 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information