Is there a way to ensure that an image within nested flex containers has a width of 100% in IE11, even when the container has flex-direction: column
? I've tried setting the width to 100% with a max-width of calc(100% - 0.1px), but unfortunately it doesn't seem to work. Any suggestions?
section, .articles-wrapper, .article-wrapper {
display: flex;
}
.article-wrapper {
flex-direction: column;
}
img {
width: 100%;
}
Here is the HTML structure:
<section>
<div class="articles-wrapper">
<div class="article-wrapper">
<img src="http://via.placeholder.com/600x150">
</div>
</div>
</section>