How can I limit the child width to the content in a vertical flexbox? As you can see by the cyan background, the child width occupies the width of the container. I want it to occupy only the width that it needs.
.container{
display: flex;
background: yellow;
flex-direction: column;
padding: 5px;
}
.content{
background: cyan;
margin: 5px;
}
<div class="container">
<div class="content">hello whats up</div>
<div class="content">hello whats up</div>
</div>