As you can see in this codepen https://codepen.io/anon/pen/yELMrv , the red column's height is the same as the blue one even though there's less content. I want my red column's height to be determined by the content inside of it.
.column-layout{
display: flex;
}
.one{
background-color: blue;
flex: 3;
}
.two{
background-color: red;
flex: 1;
}
<div class='column-layout'>
<div class='one'>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
</div>
<div class='two'>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
</div>
</div>