--- id: 587d78ad367417b2b2512af8 title: Align Elements Using the align-items Property challengeType: 0 videoUrl: 'https://scrimba.com/p/pVaDAv/c8aggtk' --- ## Description
The align-items property is similar to justify-content. Recall that the justify-content property aligned flex items along the main axis. For rows, the main axis is a horizontal line and for columns it is a vertical line. Flex containers also have a cross axis which is the opposite of the main axis. For rows, the cross axis is vertical and for columns, the cross axis is horizontal. CSS offers the align-items property to align flex items along the cross axis. For a row, it tells CSS how to push the items in the entire row up or down within the container. And for a column, how to push all the items left or right within the container. The different values available for align-items include:
## Instructions
An example helps show this property in action. Add the CSS property align-items to the #box-container element, and give it a value of center. Bonus
Try the other options for the align-items property in the code editor to see their differences. But note that a value of center is the only one that will pass this challenge.
## Tests
```yml tests: - text: 'The #box-container element should have an align-items property set to a value of center.' testString: 'assert($("#box-container").css("align-items") == "center", "The #box-container element should have an align-items property set to a value of center.");' ```
## Challenge Seed
```html

Hello

Goodbye

```
## Solution
```js // solution required ```