freeCodeCamp/guide/english/certifications/responsive-web-design/css-flexbox/use-the-flex-direction-prop.../index.md

14 lines
330 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Use the flex-direction Property to Make a Column
---
## Use the flex-direction Property to Make a Column
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;
}
```