<div class='parent'>
<div class='child'></div>
<div class='child2'></div>
</div>
.parent {
padding: 10px;
display: flex;
justify-content: space-between;
align-items: stretch;
background: red;
}
.child {
background: white;
width: 50px;
height: 100px;
}
.child2 {
width: 50px;
background: black;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.