Type Alias lightningcss::values::position::VerticalPosition
source · pub type VerticalPosition = PositionComponent<VerticalPositionKeyword>;
Expand description
A vertical position component.
Aliased Type§
enum VerticalPosition {
Center,
Length(DimensionPercentage<LengthValue>),
Side {
side: VerticalPositionKeyword,
offset: Option<DimensionPercentage<LengthValue>>,
},
}
Variants§
Center
The center
keyword.
Length(DimensionPercentage<LengthValue>)
A length or percentage from the top-left corner of the box.
Side
A side keyword with an optional offset.
Fields
§
side: VerticalPositionKeyword
A side keyword.
§
offset: Option<DimensionPercentage<LengthValue>>
Offset from the side.