Dealing with a variety of images within a resizing container can be tricky. I have a solution for adjusting each image to a specific size without affecting the others. Currently, the container's CSS is set to resize images based on browser size:
.contentwrapper {
display: block;
position: relative;
margin:0 auto;
width:90vw;
max-width: 100%;
max-height: 100%;
margin-top: 150px;
}
img {
max-width: 75%;
max-height: 75%;
height: auto;
position: relative;
}
Now, how can we make individual images different sizes? For example, having the first image at max-width: 75% and the second at max-width: 55%, etc.
<div class="contentwrapper">
<img
src="img/1.%20Generation%20anxiety%20front%20+%20back%20copy2.png">
<img style="float: right"
src="img/2.%20GenerationAnxiety%20page%202,2.png">
</div>