Style direction Property
Style direction Property
The direction property is used to either set or return the text direction of element content. In other words, it is a reading order.
Syntax:-
Its syntax is:- object.style.direction OR object.style.direction = ltr|rtl|initial|inherit
Return:-
Its return is:- string having text direction of an element
Further Explanation:-
Value | Description |
---|---|
ltr | Text flows from left to right. |
rtl | Text flows from right to left. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |