2018-02-13 03:50:31 -08:00
---
2018-02-19 02:55:30 -08:00
path: "/docs/justify-content"
2018-02-13 03:50:31 -08:00
title: "Justify Content"
hasPlayground: true
---
2018-02-14 07:53:07 -08:00
## Justify Content
2018-02-14 08:42:49 -08:00
Justify content describes how to align children within the main axis of their container.
For example, you can use this property to center a child horizontally within a container
2018-02-16 06:41:54 -08:00
with `flex direction` set to `row` or vertically within a container with `flex direction`
set to `column` .
2018-02-14 08:42:49 -08:00
**FLEX START (DEFAULT)** Align children of a container to the start of the container's main axis.
**FLEX END** Align children of a container to the end of the container's main axis.
**CENTER** Align children of a container in the center of the container's main axis.
2018-02-16 06:41:54 -08:00
**SPACE BETWEEN** Evenly space of children across the container's main axis, distributing
2018-02-14 08:42:49 -08:00
remaining space between the children.
2018-02-16 06:41:54 -08:00
**SPACE AROUND** Evenly space of children across the container's main axis, distributing
remaining space around the children. Compared to `space between` using
2018-11-29 11:13:36 -08:00
`space around` will result in space being distributed to the beginning of
2018-02-14 08:42:49 -08:00
the first child and end of the last child.
2019-08-07 23:57:58 -07:00
**SPACE EVENLY** Evenly distributed within the alignment container along the main axis. The spacing between each pair of adjacent items, the main-start edge and the first item, and the main-end edge and the last item, are all exactly the same.
2018-02-14 07:53:07 -08:00
< controls prop = "justifyContent" > < / controls >