Use the flex Shorthand Propertys

Use the flex Shorthand Propertys
0

Tell us what’s happening:
it said : Your code should use the flex property for #box-1 and #box-2 .
and : Cannot read property ‘length’ of null
where’s the problem?.

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36.

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

It wants you to use the shorthand flex property it describes in the paragraph above the challenge. So for box 2 instead of:

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

You would put:

flex: 1 1 150px;

oh got it! my bad i didn’t really read the explanation when i didn’t get it. my english is really bad.