Files

21 lines
420 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Use the flex-direction Property to Make a Column
---
# Use the flex-direction Property to Make a Column
---
## Solutions
<details><summary>Solution 1 (Click to Show/Hide)</summary>
2018-10-12 15:37:13 -04:00
To stack the child elements of your flex container on top of each other you would change the <i>flex-direction</i> the following way:
```CSS
#main-container {
display: flex;
flex-direction: column;
}
```
</details>