style.direction (Property)

Controls the direction of flow of inline content such as text and table cells.

Availability:

CSS level - 2
DOM level - 2
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.direction
CSS syntax:direction: aDirection
Argument list:aDirectionOne of the available text directions

The direction property may be set to indicate a left to right or right to left parsing direction.

This is part of the localization support and represents the contents of the DIR="..." tag attribute.

If you assign a value to this property it is case-sensitive and must be one of the following:

This property works in conjunction with the lang property to control the direction of text flow.

The variations with the override modifier keyword are intended to force the direction even when the underlying language does not support it natively according to the Unicode rules.