I am facing a simple issue that I just can't seem to solve. My problem involves two images aligned horizontally within a div container. Each image has specified width, minimum and maximum widths, while the parent div's width is set to 100%. How can I make both images scale down proportionally when the parent width is reduced to 50% based on the screen width? Here is an example:
<!-- screen resized to 110px in width -->
<div style="width:100%; display:block">
<!-- actual image width is 200px -->
<img src="i.png" style="width:100%; min-width:100px; max-width:200px">
<img src="i.png" style="width:100%; min-width:100px; max-width:200px">
</div>
The current setup causes the second image to be pushed down if the parent container cannot accommodate it horizontally. Setting white-space to nowrap keeps them inline but does not scale them down. Can anyone provide some assistance with this issue?