curriculum/challenges/english/blocks/top-introduction-to-flexbox/6597b43d854b3fa8e35d66d7.md
To change the placement of items along the cross axis use align-items. Try getting the boxes to the center of the container by adding align-items: center to .container. The desired result looks like this:
Because justify-content and align-items are based on the main and cross axis of your container, their behavior changes when you change the flex-direction of a flex-container. For example, when you change flex-direction to column, justify-content aligns vertically and align-items aligns horizontally. The most common behavior, however, is the default, i.e. justify-content aligns items horizontally (because the main axis defaults to horizontal), and align-items aligns them vertically. One of the biggest sticking points that beginners have with flexbox is confusion when this behavior changes.
Before moving on to the next lesson, see if you can figure out how align-items behaves when you change the flex-direction property to column.
When changing the flex-direction property to column in a flex container, how does align-items behave in relation to the flex items?
It distributes space between items evenly.
It aligns items horizontally along the main axis.
It centers items vertically along the cross axis.
It aligns items to the start of the container along the cross axis.
3