Files
yoga/website/contents/properties/align-items.md
Emil Sjölander bbdb62e654 Use absolute paths in links
Summary: allow-large-files

Reviewed By: danielbuechele

Differential Revision: D7023260

fbshipit-source-id: a797d09b61530b13da10e02c21acef13c508470c
2018-02-19 02:57:52 -08:00

31 lines
1.1 KiB
Markdown

---
path: "/docs/align-items"
title: "Align Items / Self"
hasPlayground: true
---
## Align Items
Align items describes how to align children along the cross axis of their container.
Align items is very similar to [`justify content`](/docs/justify-content) but instead of
applying to the main axis, `align items` applies to the cross axis.
**STRETCH (DEFAULT)** Stretch children of a container to match the `height` of the container's cross axis.
**FLEX START** Align children of a container to the start of the container's cross axis.
**FLEX END** Align children of a container to the end of the container's cross axis.
**CENTER** Align children of a container in the center of the container's cross axis.
<controls prop="alignItems"></controls>
## Align Self
Align self has the same options and effect as `align items` but instead of
affecting the children within a container, you can apply this property to
a single child to change its alignment within its parent. `align self`
overrides any option set by the parent with `align items`.
<controls prop="alignSelf"></controls>