The direction property specifies the direction of the flow of text and table column display.

  • Initial valueltr
  • Applies toAll elements
  • InheritedYes
  • MediaVisual
  • Computed valueSpecified value
  • AnimatableNo
  • CSS VersionCSS2, CSS3
  • JavaScript
Formal syntax: ltr | rtl

direction: ltr;
direction: rtl;
  • ltrThe direction of text and other elements go from left to right.
  • rtlThe direction of text and other elements go from right to left.
  • inherit
.class {
   direction: rtl;
   unicode-bidi: embed;

Click the button below to experiment with this property.

Give it a Try!


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.