monks/direction

Where possible, authors are encouraged to avoid using the direction CSS property and use the HTML dir global attribute instead.

The direction CSS property sets the direction of text, table and grid columns, and horizontal overflow. Use rtl for languages written from right to left (like Hebrew or Arabic), and ltr for those written from left to right (like English and most other languages).

Note that text direction is usually defined within a document (e.g., with HTML’s dir attribute) rather than through direct use of the direction property.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const ltr: #(String, String)
  • : Text and other elements go from left to right. This is the default value.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for direction

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const rtl: #(String, String)
  • : Text and other elements go from right to left.For the direction property to have any effect on inline-level elements, the {{Cssxref(“unicode-bidi”)}} property’s value must be embed or override.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for direction. It will be wrapped in var() and have -- prepended.

Search Document