I can't find the mistake

The console message that says “Your code should use the flex property for # box-1 and # box-2.”
But #box-1 and #box-2 they have flex property (flex: 1)…


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

#box-2 {
  background-color: orangered;
  height: 200px;
  flex: 1;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 150px;

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.

Challenge: Use the flex Shorthand Property

Link to the challenge:

You need to use the flex shorthand in this challenge:

  • For example, flex: 1 0 10px; will set the item to flex-grow: 1; , flex-shrink: 0; , and flex-basis: 10px;

You’ve wrote all the flex properties on separate line, remove the flex-grow, flex-shrink and flex-basis and reformat

Thank you very much! Fixed.