monks/text_align_last

The text-align-last CSS property sets how the last line of a block or a line, right before a forced line break, is aligned.

Values

pub const auto_: #(String, String)
  • : The affected line is aligned per the value of {{cssxref(“text-align”)}}, unless {{cssxref(“text-align”)}} is justify, in which case the effect is the same as setting text-align-last to start.
pub const center: #(String, String)
  • : The inline contents are centered within the line box.
pub const end: #(String, String)
  • : The same as right if direction is left-to-right and left if direction is right-to-left.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const justify: #(String, String)
  • : The text is justified. Text should line up their left and right edges to the left and right content edges of the paragraph.
pub const left: #(String, String)
  • : The inline contents are aligned to the left edge of the line box.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for text-align-last

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)
  • : The inline contents are aligned to the right edge of the line box.
pub const start: #(String, String)
  • : The same as left if direction is left-to-right and right if direction is right-to-left.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document