I have the following HTML markup:
<div class="row">
<div class="col">
<div>lorem</div>
<div>ipsum</div>
<div>dolor</div>
<div>sit</div>
<div>amet</div>
</div>
<div class="col">
<div>lorem</div>
<div>ipsum</div>
<div>dolor</div>
<div><button>sit</button></div>
<div><button>amet</button></div>
</div>
</div>
and the following styling:
.row {
display: flex;
}
.col {
width: 50%;
}
.col > * {
padding: 5px;
border-bottom: 1px solid red;
}
Which gives me a result like this:
As you might see, the borders don't line up between the last two children across the columns due to the height of the buttons. I realize I could solve this by setting a fixed height, but I was hoping for a more flexible solution that would work without knowing things like the height of a button in advance. How can I make sure (flexibly) that all lines have the same height?