Looking to have these 3 divs align horizontally with responsive images. Having trouble maintaining the layout when setting max-width. Any suggestions?
.fl {
display: flex;
flex-wrap: no-wrap;
height: 35%;
flex-direction: row;
}
.pic {
width: 34%;
}
.caro {
/* border: 2px solid black; */
height: 100%;
width: 100%;
display: block;
/* z-index: ; */
}
.caro img {
height: 100%;
width: 100%;
filter: brightness(0.5);
transition: all .3s;
}
.caro img:hover {
filter: brightness(1);
}
<div class="fl">
<div class="pic">
<a href="#" class="caro"><img src="https://via.placeholder.com/1920x1080.jpg" alt=""></a>
</div>
<div class="pic">
<a href="#" class="caro"><img src="https://via.placeholder.com/1920x1080.jpg" alt=""></a>
</div>
<div class="pic">
<a href="#" class="caro"><img src="https://via.placeholder.com/1920x1080.jpg" alt=""></a>
</div>
</div>