On a node with flex grow/shrink, aspect ratio controls the size of the node in the cross axis if unset.On a node with a measure function, aspect ratio works as though the measure function measures the flex basis.On a node with a set flex basis, aspect ratio controls the size of the node in the cross axis if unset.On a node with a set width/height, aspect ratio controls the size of the unset dimension.TypeĮnum('auto', 'flex-start', 'flex-end', 'center', 'stretch', 'baseline')Īspect ratio controls the size of the undefined dimension of a node. It works like align-self in CSS (default: auto). TypeĮnum('flex-start', 'flex-end', 'center', 'stretch', 'baseline')ĪlignSelf controls how a child aligns in the cross direction, overriding the alignItems of the parent. It works like align-items in CSS (default: stretch). For example, if children are flowing vertically, alignItems controls how they align horizontally. TypeĮnum('flex-start', 'flex-end', 'center', 'stretch', 'space-between', 'space-around')ĪlignItems aligns children in the cross direction. AlignContent controls how rows align in the cross direction, overriding the alignContent of the parent.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |