1. Home
  2. Computing & Technology
  3. Web Design / HTML

direction

By Jennifer Kyrnin, About.com

direction Description:

The direction property defines the direction the text will display.

direction in CSS Versions:

direction Syntax:

direction: ltr | rtl | inherit

  • ltr
    Left to right.
  • rtl
    Right to left.
  • inherit
    The element should have the same direction setting as the parent.

direction Initial Value:

ltr

direction Applies To:

All elements.

direction Inheritance:

This property is inherited.

direction Browser Support:

direction Examples:

change the direction of the element

<p style="direction: rtl;">
This paragraph should display right to left.
</p>

direction Special Notes:

More direction Information:

Return to the Style Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. Style Properties
  6. CSS Style Property: direction

©2008 About.com, a part of The New York Times Company.

All rights reserved.