I try to put four pictures of different sizes in one row. Kinda like this.
Anyway, I got so far to put everything in a row with the same height, even though some pics might stretch a bit too much, but thats ok.
But now I also want it to be responsive so if I lower the size of my browser, the pics should get smaller, but they just don't.
Please help, that's what I wrote so far.
.frontpageinspire {
max-width: 100%;
margin: 0;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: stretch;
align-content: stretch;
}
.top8 {
height: 300px;
padding: 10px 5px 10px 5px;
flex-grow: 1;
flex-shrink: 1;
align-self: center;
}
<div class="frontpageinspire">
<img class="top8" id="image1" src="img/abc/abc1.jpg"></img>
<img class="top8" id="image2" src="img/abc/abc2.jpg"></img>
<img class="top8" id="image3" src="img/abc/abc3.jpg"></img>
<img class="top8" id="image4" src="img/abc/abc4.jpg"></img>
</div>