2018-10-08 13:34:43 -04:00
---
id: 587d78ac367417b2b2512af4
title: Use the flex-direction Property to Make a Column
localeTitle: Usa la propiedad de dirección flexible para hacer una columna
challengeType: 0
videoUrl: ''
---
## Description
2018-10-09 20:28:15 +01:00
< section id = 'description' >
Los dos últimos desafíos utilizaron la propiedad de < code > flex-direction< / code > establecida en fila. Esta propiedad también puede crear una columna apilando verticalmente los hijos de un contenedor flexible.
2018-10-08 13:34:43 -04:00
< / section >
## Instructions
2018-10-09 20:28:15 +01:00
< section id = 'instructions' >
Agregue la propiedad CSS < code > flex-direction</ code > al elemento < code > #box -container</ code > y asígnele un valor de columna.
2018-10-08 13:34:43 -04:00
< / section >
## Tests
< section id = 'tests' >
```yml
tests:
2018-10-09 20:28:15 +01:00
- text: 'El elemento < code > #box -container</ code > debería tener una propiedad de < code > flex-direction</ code > configurada en columna.'
2018-10-08 13:34:43 -04:00
testString: 'assert($("#box -container").css("flex-direction") == "column", "The < code > #box -container</ code > element should have a < code > flex-direction</ code > property set to column.");'
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'html-seed' >
```html
< style >
#box -container {
display: flex;
height: 500px;
}
#box -1 {
background-color: dodgerblue;
width: 50%;
height: 50%;
}
#box -2 {
background-color: orangered;
width: 50%;
height: 50%;
}
< / style >
< div id = "box-container" >
< div id = "box-1" > < / div >
< div id = "box-2" > < / div >
< / div >
```
< / div >
< / section >
## Solution
< section id = 'solution' >
```js
// solution required
```
< / section >