Style direction Property

Style direction Property


Style direction Property
It is the CSS property to set the direction of text, table, columns, and horizontal overflow. It is used to this property together with the unicode-bidi property to set or return whether the text should be overridden to support multiple language in the same document.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
 
property
 
chrome
 
firefox
 
microsoft edge
 
Opera
 
direction
 
2.0
 
1.0
 
5.5
 
9.2
 
Syntax
direction: ltr|rtl|initial|inherit;
Example 
Output
Property Values
 
Value
 
Description
 
ltr
 
Text direction goes from left to right. This is the default.
 
rtl
 
Text direction goes from right to left
 
initial
 
Set this property to its default value.
 
inherit
 
Inherits this property from its parent element.
 
Technical Details
 
Default value:
 
ltr
 
Version:
 
CSS2
 
inherited
 
Yes
 
Animatable
 
No
 
JavaScript syntax:
 
object.style.direction="rtl"