GridPlacement
GridPlacement
- start : core::option::Optioncore::num::NonZeroI16
- span : core::option::Optioncore::num::NonZeroU16
- end : core::option::Optioncore::num::NonZeroI16
Description
Represents the position of a grid item in a single axis.
There are 3 fields which may be set:
start
: which grid line the item should start atend
: which grid line the item should end atspan
: how many tracks the item should spanThe default
span
is 1. If neitherstart
orend
is set then the item will be placed automatically.Generally, at most two fields should be set. If all three fields are specified then
span
will be ignored. Ifend
specifies an earlier grid line thanstart
thenend
will be ignored and the item will have a span of 1.https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Line-based_Placement_with_CSS_Grid