There is a <div> with display: flex;, flex-direction: column and fixed height and width. There are flex items containing images. After applying min-height: 0, as required, the images distributed vertically equal. But the flex items have some extra space left out. I can't remove this.
I tried all kind of stuff but no luck. please help.
.a {
border: 1px red solid;
width: 200px;
height: 110px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.a>div {
border: 1px blue solid;
min-height: 0;
}
.a>div>img {
height: 100%;
}
<div class="a">
<div>
<img src="https://via.placeholder.com/150.png" />
</div>
<div>
<img src="https://via.placeholder.com/150.png" />
</div>
<div>
<img src="https://via.placeholder.com/150.png" />
</div>
</div>