Using only CSS how can I resize images below its original width and height when parent div gets smaller then sum of content width. I have a div with some images and if I resize the window lets say below 400px then images doesn't resize below its original size. Is there any way content images can be auto rezie while resizing browser window. I attached snipped code below:
.container {
width: 100%;
height: 100%;
display: flex;
justify-content: space-between;
max-width: 900px;
max-height: 256px;
border: thin solid silver;
}
img {
height: 100%;
max-height: 256px;
width: auto;
}
body {
margin: 5px;
}
<body>
<div class="container">
<img src="https://img.icons8.com/pastel-glyph/2x/blood-sample.png" />
<img src="https://img.icons8.com/pastel-glyph/2x/blood-sample.png" />
<img src="https://img.icons8.com/pastel-glyph/2x/blood-sample.png" />
</div>
</body>