2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Align All Items Vertically using align-items
|
|
|
|
---
|
2019-07-24 00:59:27 -07:00
|
|
|
# Align All Items Vertically using align-items
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
---
|
|
|
|
## Problem Explanation
|
2018-10-30 22:26:29 -05:00
|
|
|
In this challenge you are required to use the "align-items" property to vertically align all the items in the grid.
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Hints
|
|
|
|
|
2018-10-30 22:26:29 -05:00
|
|
|
### Hint
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2018-10-30 22:26:29 -05:00
|
|
|
You can vertically align the items by declaring the following in your CSS codeblock:
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
```css
|
2018-10-30 22:26:29 -05:00
|
|
|
align-items: value;
|
2019-07-24 00:59:27 -07:00
|
|
|
```
|
2018-10-30 22:26:29 -05:00
|
|
|
|
|
|
|
where value is how you could like to vertically align the items.
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Solutions
|
|
|
|
|
|
|
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
2018-10-30 22:26:29 -05:00
|
|
|
|
|
|
|
Since the challenge requires you to move all the items to the end of each cell (vertically), declare the following in your .container CSS codeblock:
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
```css
|
2018-10-30 22:26:29 -05:00
|
|
|
align-items: end;
|
2019-07-24 00:59:27 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
</details>
|