CSS direction Property
Complete CSS Reference
Definition
The direction property sets the text direction.
Inherited: Yes
JavaScript Syntax
CSS properties can also be dynamically changed with a JavaScript.
Scripting Syntax: object.style.direction="rtl"
In our HTML DOM tutorial you can find more details about the
direction property.
In our HTML DOM tutorial you can also find a full
Style Object Reference.
Examples
Possible Values
| Value |
Description |
| ltr |
Default. Text direction is left-to-right |
| rtl |
Text direction is right-to-left |
Try-It-Yourself Demos
Set the
text direction of an element
This example demonstrates how to change the text direction of an element.
Complete CSS Reference
Learn XML with Stylus Studio XML Tools - Free Download!
 |
|
Stylus Studio makes it easy to edit and validate XML, XSLT, DTD, XML Schema, XHTML, XPath, XQuery and Web Service applications.
Free XML video demonstrations will help you learn XML and become a W3C XML development master in just minutes!
Download a FREE Trial Now!
|
|