monks/background_position_x

The background-position-x CSS property sets the initial horizontal 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 center: #(String, String)
  • : Aligns the center of the background image with the center of the background position layer.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const left: #(String, String)
  • : Aligns the left edge of the background image with the left edge of the background position layer.
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of background-position-x

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

Enter a raw string value for background-position-x

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)
  • : Aligns the right edge of the background image with the right 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-x. It will be wrapped in var() and have -- prepended.

pub const x_end: #(String, String)

x-end value of background-position-x

pub const x_start: #(String, String)

x-start value of background-position-x

Search Document