The problem I'm having is that the image height will not stay in its container's boundaries.
The the max-width being applied to the image seems to work, however, the max-height doesn't.
HTML
<div class="row-layout">
<div class="artist-image">
<img >
</div>
<div class="artist-image">
<img >
</div>
<div class="artist-image">
<img >
</div>
</div>
CSS
.row-layout {
display: flex;
flex-direction: row;
width: 100%;
height: 250px;
}
.artist-image {
flex-grow: 1;
flex-shrink: 0;
flex-basis: 0;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.artist-image > img {
max-width: 100%;
max-height: 100%;
}
Any ideas on how to fix this would be much appreciated.