flexbox vertical align image code example
Example: center image inside flexbox
.box {
display: flex;
align-items: center;
justify-content: center;
}
.box img {
width: 100px;
height: 100px;
}
<div class="box">
<img>
</div>
.box {
display: flex;
align-items: center;
justify-content: center;
}
.box img {
width: 100px;
height: 100px;
}
<div class="box">
<img>
</div>