element:
:flex;
-items:center;
The number immediately following -webkit-, -ms- or -moz- is the first version that supports this prefix attribute.
The align-items property defines the alignment of flex items in the direction of the cross axis (vertical axis) of the current row of the flex container.
Tip:The align-items property can be overridden using the align-self property of each flex object element.
21.0 | 11.0 | 20.0 | 9.0 | 7.0 -webkit-12.1 |
align-items: stretch|center|flex-start|flex-end|baseline|initial|inherit;
Default: | stretch |
---|---|
No | |
No. Please refer to | CSS3 animation properties, CSS3 animation examples. |
CSS3 | |
object. style.alignItems="center" Effect preview |
Value | Description | Test |
---|---|---|
##stretch | default value. Items are stretched to fit the container. | Effect Preview |
center | The item is located in the center of the container. | Effect preview |
##flex-start | The item is at the beginning of the container. | Effect preview |
##flex-end | The item is at the end of the container. | Effect preview |
baseline | The project is located on the baseline of the container. | Effect Preview |
Set this property to its default value. See initial. | Effect preview | |
##inherit | Inherits this attribute from the parent element. See inherit. |