2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								id: 587d78ac367417b2b2512af4
							 
						 
					
						
							
								
									
										
										
										
											2021-06-26 21:42:30 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								title: Usar a propriedade flex-direction para criar uma coluna
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								challengeType: 0
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								videoUrl: 'https://scrimba.com/p/pVaDAv/cZmWeA4'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								forumTopicId: 301109
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								dashedName: use-the-flex-direction-property-to-make-a-column
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# --description--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-26 21:42:30 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Os últimos dois desafios usaram a propriedade `flex-direction`  com o valor de `row` . Esta propriedade também pode criar uma coluna ao empilhar verticalmente os elementos filhos de um flex container.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# --instructions--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-26 21:42:30 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Adicione a propriedade CSS `flex-direction`  ao elemento de id `#box-container`  e dê a ela o valor de `column` .
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# --hints--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-26 21:42:30 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								O elemento de id `#box-container`  deve ter a propriedade `flex-direction`  com o valor de `column` .
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```js
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								assert($('#box -container').css('flex-direction') == 'column');
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# --seed--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## --seed-contents--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```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 >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# --solutions--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```html
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< style >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  #box -container {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    display: flex;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    height: 500px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    flex-direction: column;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  #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 >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```