<h1>center</h1>
<div class="container">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
</div>
.container {
    width: 200px;
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
}

.item {
    width: 50px;
}

.item:nth-child(1) {
    background-color: #fff001;
    align-self: flex-start;
}

.item:nth-child(2) {
    background-color: #00a5e7;
    align-self: stretch;
}

.item:nth-child(3) {
    background-color: #00984b;
}

.item:nth-child(4) {
    background-color: #cd5638;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.