monks/object_position

The object-position CSS property specifies the alignment of the selected {{ glossary(“replaced elements”, “replaced element”)}}’s contents within the element’s box. Areas of the box which aren’t covered by the replaced element’s object will show the element’s background.

You can adjust how the replaced element’s object’s intrinsic size (that is, its natural size) is adjusted to fit within the element’s box using the {{cssxref(“object-fit”)}} property.

Values

pub const bottom: #(String, String)

bottom value of object-position

pub const center: #(String, String)

center value of object-position

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const left: #(String, String)

left value of object-position

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

length value of object-position

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

Enter a raw string value for object-position

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)

right value of object-position

pub const top: #(String, String)

top value of object-position

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

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

Search Document