#con {
height: 400px;
width: 300px;
border: solid 1px red;
display: flex;
flex-wrap: wrap;
align-content: stretch;
}
#one {
border: solid 1px green;
flex-grow: 1;
}
#two {
border: solid 1px magenta;
width: 40px;
}
#tre {
width: 100%;
height: 50px;
border: solid 1px blue;
}
<div id="con">
<div id="one">1</div>
<div id="two">2</div>
<div id="tre">3</div>
</div>
if i dont set the height then they autofill, but i dont want both rows to be 50% high
2
Answers
Juste change this :
by :
Thanks
Please use classes for styling not id’s. If you are not limited by using only flexbox, i would use grid (if you must to have only 3 divs)