monks/text_justify

The text-justify CSS property sets what type of justification should be applied to text when {{cssxref(“text-align”, “text-align: justify;”)}} is set on an element.

Values

pub const auto_: #(String, String)
  • : The browser chooses the best type of justification for the current situation based on a balance between performance and quality, but also on what is most appropriate for the language of the text (e.g., English, CJK languages, etc.). This is the default justification used if text-justify is not set at all.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const inter_character: #(String, String)
  • : The text is justified by adding space between characters (effectively varying {{cssxref(“letter-spacing”)}}), which is most appropriate for languages like Japanese.
pub const inter_word: #(String, String)
  • : The text is justified by adding space between words (effectively varying {{cssxref(“word-spacing”)}}), which is most appropriate for languages that separate words using spaces, like English or Korean.
pub const none: #(String, String)
  • : The text justification is turned off. This has the same effect as not setting {{cssxref(“text-align”)}} at all, although it is useful if you need to turn justification on and off for some reason.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for text-justify

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document