monks/vertical_align

The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box.

Values

pub const baseline: #(String, String)
  • : Aligns the baseline of the element with the baseline of its parent. The baseline of some {{ glossary(“replaced elements”)}}, like {{HTMLElement(“textarea”)}}, is not specified by the HTML specification, meaning that their behavior with this keyword may vary between browsers.
pub const bottom: #(String, String)

bottom value of vertical-align

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of vertical-align

pub const middle: #(String, String)
  • : Aligns the middle of the element with the baseline plus half the x-height of the parent.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for vertical-align

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const sub: #(String, String)
  • : Aligns the baseline of the element with the subscript-baseline of its parent.
pub const super: #(String, String)
  • : Aligns the baseline of the element with the superscript-baseline of its parent.
pub const text_bottom: #(String, String)
  • : Aligns the bottom of the element with the bottom of the parent element’s font.
pub const text_top: #(String, String)
  • : Aligns the top of the element with the top of the parent element’s font.
pub const top: #(String, String)

top value of vertical-align

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

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

Search Document