I'm exploring flex css and stumble on this problem. I know that align-items: stretch
could make the child elements pick the tallest child height and automatically stretch its siblings.
Based on the code below, is it possible to make the component-item
stretch or have the same height as the other component-item
using css? I need the other component-item
to follow the 5 liner description height.
Thanks in advance!
<div class="main-container">
<div class="component-container">
<h1>Component Title</h1>
<div class="component-item">
3 liner description
</div>
</div>
<div class="component-container">
<h1>Component Title</h1>
<div class="component-item">
5 liner description
</div>
</div>
<div class="component-container">
<h1>Component Title</h1>
<div class="component-item">
4 liner description
</div>
</div>
</div>