Guys i’m stuck here, my coding is not working, it keeps stating i should use the flex
property for #box-1
and #box-2
, please help?
Describe your issue in detail here.
**Your code so far**
<style>
#box-container {
display: flex;
height: 500px;
}
#box-1 {
background-color: dodgerblue;
height: 200px;
flex:2 2 150px ;
}
#box-2 {
background-color: orangered;
height: 200px;
flex:1 1 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.39
Challenge: Use the flex Shorthand Property
Link to the challenge: