monks/background_position_y

The background-position-y CSS property sets the initial vertical position for each background image. The position is relative to the position layer set by {{cssxref(“background-origin”)}}.

The value of this property is overridden by any declaration of the {{cssxref(“background”)}} or {{cssxref(“background-position”)}} shorthand properties applied to the element after it.

Values

pub const bottom: #(String, String)
  • : Aligns the bottom edge of the background image with the bottom edge of the background position layer.
pub const center: #(String, String)
  • : Aligns the vertical center of the background image with the vertical center of the background position layer.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of background-position-y

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

Enter a raw string value for background-position-y

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const top: #(String, String)
  • : Aligns the top edge of the background image with the top edge of the background position layer.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

pub const y_end: #(String, String)

y-end value of background-position-y

pub const y_start: #(String, String)

y-start value of background-position-y

Search Document