CSS/Properties/direction

From W3C Wiki
< CSS‎ | Properties
Revision as of 18:02, 16 June 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

direction

The direction property specifies the base writing direction of blocks and the direction of embeddings and overrides for the Unicode bidirectional algorithm.

Description

Values ltr | rtl | inherit
Initial value ltr
Applies to All elements
Inherited Yes


Point, Note

  • Also, it specifies the direction of table column layout, the direction of horizontal overflow, and the position of an incomplete last line in a block in case of 'text-align: justify'.


  • This property, when specified for table column elements, is not inherited by cells in the column since columns are not the ancestors of the cells in the document tree.


Values

  • ltr
    Left-to-right direction.


  • rtl
    Right-to-left direction.


  • inherit
    Takes the same specified value as the property for the element's parent.


CSS Reference

The CSS specification defines the direction property in 9.10 Text direction.