I would like to achieve this: .right
must be aligned vertically to center, but must be placed at the very end of the .wrap
just like below.
Here is my code:
.wrap {
display: flex;
box-shadow: 0 0 0 1px black;
height: 400px;
align-items: center;
}
.wrap > * {
box-shadow: 0 0 0 1px black;
padding: 20px;
}
.right {
align-self: flex-end;
}
<div class="wrap">
<div class="left">1</div>
<div class="nextToLeft">2</div>
<div class="right">3</div>
</div>