How can I make the height of the child div be only as long as the content (text in this case) is ?
.wrapp{
display:flex;
flex-direction: row;
flex-wrap: wrap;
height: 1200px;
}
.child{
border: 1px solid red;
width: 50px;
height: auto;
margin: 20px
}
<div class='wrapp'>
<div class='child'>text text text texttext texttext texttext texttext texttext texttext texttext texttext texttext text</div>
<div class='child'>text texttext text</div>
</div>