monks/margin

The margin CSS shorthand property sets the margin area on all four sides of an element.

Values

pub const auto_: #(String, String)
  • : The browser selects a suitable margin to use. For example, in certain cases this value can be used to center an element.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)
  • : The size of the margin as a fixed value. - For anchor-positioned elements, the {{cssxref(“anchor-size()”)}} function resolves to a {{cssxref(“<length>”)}} value relative to the associated anchor element’s width or height (see Setting element margin based on anchor size).
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for margin

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

Search Document