monks/box_align
{{Non-standard_header}}{{Deprecated_Header}}
This is a property of the original CSS flexible box layout Module draft, and has been replaced by a newer standard.
The box-align CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box.
See flexbox for information about the current standard.
The direction of layout depends on the element’s orientation: horizontal or vertical.
Values
pub const baseline: #(String, String)
- : The box aligns the baselines of the contents (lining up the text). This only applies if the box’s orientation is horizontal.
pub const center: #(String, String)
- : The box aligns contents in the center, dividing any extra space equally between the start and the end.
pub const end: #(String, String)
- : The box aligns contents at the end, leaving any extra space at the start.
pub const revert_layer: #(String, String)
pub const start: #(String, String)
- : The box aligns contents at the start, leaving any extra space at the end.
pub const stretch: #(String, String)
- : The box stretches the contents so that there is no extra space in the box.