Every div contains unique content of varying heights. Our approach involves using flexboxes to ensure equal height for each li element.
Now, we are facing a challenge with positioning the div class="2" so that their tops align perfectly.
We've experimented with flexboxes to adjust the position of div class="2", but currently, they are all aligned at the bottom of each li.
ul{
display:flex;
flex-direction:row;
flex-wrap:wrap;
align-items:stretch;
}
ul li{
display:flex;
flex-direction:row;
flex-wrap:wrap;
align-items:flex-start;
}
ul li div.1{
align-self:flex-start;
}
ul li div.2{
align-self:flex-end;
}
<div>
<ul>
<li>
<div class="1">Some content</div>
<div class="2">Some content</div>
</li>
<li>
<div class="1">Some content</div>
<div class="2">Some content</div>
</li>
<li>
<div class="1">Some content</div>
<div class="2">Some content</div>
</li>
</ul>
</div>
https://i.stack.imgur.com/BhHc1.png
Your assistance is greatly appreciated!