monks/place_self

The place-self CSS shorthand property allows you to align an individual item in both the block and inline directions at once (i.e., the {{cssxref(“align-self”)}} and {{cssxref(“justify-self”)}} properties). This property applies to block-level boxes, absolutely-positioned boxes, and grid items. If the second value is not present, the first value is also used for it.

Values

pub const auto_: #(String, String)
  • : Computes to the parent’s {{cssxref(“align-items”)}} value.
pub const baseline: #(String, String)
  • : Specifies participation in first- or last-baseline alignment: aligns the alignment baseline of the box’s first or last baseline set with the corresponding baseline in the shared first or last baseline set of all the boxes in its baseline-sharing group. The fallback alignment for first baseline is start, the one for last baseline is end.
pub const center: #(String, String)
  • : The flex item’s margin box is centered within the line on the cross-axis. If the cross-size of the item is larger than the flex container, it will overflow equally in both directions.
pub const end: #(String, String)

end value of place-self

pub const first: #(String, String)

first value of place-self

pub const flex_end: #(String, String)
  • : The cross-end margin edge of the flex item is flushed with the cross-end edge of the line.
pub const flex_start: #(String, String)
  • : The cross-start margin edge of the flex item is flushed with the cross-start edge of the line.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const last: #(String, String)

last value of place-self

pub const left: #(String, String)

left value of place-self

pub const normal: #(String, String)
  • : The effect of this keyword is dependent of the layout mode we are in: - In absolutely-positioned layouts, the keyword behaves like start on replaced absolutely-positioned boxes, and as stretch on all other absolutely-positioned boxes. - In static position of absolutely-positioned layouts, the keyword behaves as stretch. - For flex items, the keyword behaves as stretch. - For grid items, this keyword leads to a behavior similar to the one of stretch, except for boxes with an {{glossary(“aspect ratio”)}} or an intrinsic size where it behaves like start. - The property doesn’t apply to block-level boxes, and to table cells.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for place-self

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

right value of place-self

pub const safe: #(String, String)

safe value of place-self

pub const self_end: #(String, String)
  • : Aligns the items to be flush with the edge of the alignment container corresponding to the item’s end side in the cross axis.
pub const self_start: #(String, String)
  • : Aligns the items to be flush with the edge of the alignment container corresponding to the item’s start side in the cross axis.
pub const start: #(String, String)

start value of place-self

pub const stretch: #(String, String)
  • : If the combined size of the items along the cross axis is less than the size of the alignment container and the item is auto-sized, its size is increased equally (not proportionally), while still respecting the constraints imposed by {{cssxref(“max-height”)}}/{{cssxref(“max-width”)}} (or equivalent functionality), so that the combined size of all auto-sized items exactly fills the alignment container along the cross axis.
pub const unsafe: #(String, String)

unsafe value of place-self

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

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

Search Document