I am trying to use flexbox to place two images in a column. In this case, the width
container div is less than the width
image. In Chrome, the image fits perfectly in the div container, but not in IE, and I don't know why.
div.outer { width: 400px; display: flex; flex-direction: column; justify-content: space-around; } div.inner { width: 100%; border: 1px solid red; } img { width: 100%; height: auto; }
<div class="outer"> <div class="inner"> <img src="http://placehold.it/480x360"> </div> <div class="inner"> <img src="http://placehold.it/480x360"> </div> </div>
https://jsfiddle.net/Yifei/16cpckqk/
Here is what I got in IE 11:
![](https://fooobar.com//img/fbeea2f27ac9b69ce5170f8961cd0392.png)
source share