I have a flexbox
setup with a left and right section, each of equal width. The left side displays an image and the right side contains text. While this layout works fine in Google Chrome
, it does not wrap properly in Internet Explorer 11
when the width is reduced.
For a visual demonstration of the issue, check out this video: https://gyazo.com/b713844e85a2aafeb8054b5d2cdeabe1
Any suggestions on how to resolve this problem? Thank you
.d1 {
display: flex;
flex-wrap: wrap;
padding: 4%;
}
.image-container {
align-items: center;
display: flex;
flex: 1;
justify-content: center;
min-width: 200px;
}
.image-container img {
width: 100%;
height: auto;
}
.d1 .text {
background-color: lightblue;
flex: 1;
font-size: 40px;
padding: 2%;
}
<div class="d1">
<div class="image-container">
<img src="https://emilythompsonflowers.com/wp-content/uploads/2016/08/hippie-flower-300x300.jpg">
</div>
<div class="text">
Thisisaverylongtext Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</div>