Use the flex Shorthand Property-2

Use the flex Shorthand Property-2
0

#1

Tell us what’s happening:

Your code so far


<style>
  #box-container {
    display: flex;
    height: 500px;
  }
  #box-1 {
    background-color: dodgerblue;
    flex-grow: 2;
    flex-shrink: 2;
    flex-basis: 150px;
    height: 200px;
  }

  #box-2 {
    background-color: orangered;
    flex-grow:1;
    flex-shrink: 1;
    flex-basis: 150px;
    height: 200px;
  }
</style>

<div id="box-container">
  <div id="box-1"></div>
  <div id="box-2"></div>
</div>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/css-flexbox/use-the-flex-shorthand-property


#2

You need to use short-hand property like the one in example.

flex: 0 1 auto;


#3

could you please tell me how to do that


#4
flex: flex-grow flex-shrink flex-basis

So

flex-grow:1;
flex-shrink: 1; 
flex-basis: 150px;

Is

flex: 1 1 150px;