I'm new at using flex
in a stylesheet.
I am attempting to force two block level elements to be the same height.
Here is the fiddle: https://jsfiddle.net/r9pwzonx/
.flex {
display: flex;
flex-direction: column;
}
.first {
padding: 1em;
background: blue;
flex: 1;
}
.second {
padding: 1em;
background: red;
flex: 1;
}
<div class="flex">
<div class="first">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
</p>
</div>
<div class="second">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam minus aliquam assumenda consequuntur, laboriosam ducimus ad quis omnis, molestiae a iure nesciunt voluptate rem libero accusantium, deleniti, porro nemo excepturi?</p>
</div>
</div>
I do not see any change in the height of the smaller box to match the height of the larger box.