monks/margin_top

The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.

Values

pub const auto_: #(String, String)
  • : The browser selects a suitable value to use. See {{cssxref(“margin”)}}.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of margin-top

pub fn raw(value: String) -> #(String, String)

Enter a raw string value for margin-top

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 margin-top. It will be wrapped in var() and have -- prepended.

Search Document