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)…
Thanks,
<style>
#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;
}
</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 (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:
https://www.freecodecamp.org/learn/responsive-web-design/css-flexbox/use-the-flex-shorthand-property