Hello, I am currently working with a flexbox grid for a gallery layout. The goal is to have the first division occupy two columns and maintain responsiveness across different devices. Everything is functioning as intended except in IE10, where the flexbox behavior becomes erratic causing the 2-column div to expand excessively.
To see the code in action, visit: http://codepen.io/HendrikEng/pen/wzRQNJ
CSS :
.c-showcase {
width: 100%;
float: left;
margin-left: 0;
margin-right: 0;
}
.c-showcase::after {
clear: both;
content: '';
display: table;
}
.c-showcase-quote {
width: 50%;
float: left;
}
.c-showcase-item {
width: 25%;
float: left;
}
.c-showcase-item::after {
clear: both;
content: '';
display: table;
}
.c-showcase {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.c-showcase-block {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
img {
display: block;
height: auto;
width: 100%;
}
.c-showcase-quote {
background: black;
color: white;
}
HTML:
<div class="c-showcase">
<div class="c-showcase-block">
<div class="c-showcase-quote">
<h2 class="c-showcase-quote__title c-showcase-quote__title_outline_black">BLA BLA BLA</h2>
<p class="c-showcase-quote__content">blablalbl</p>
</div>
<div class="c-showcase-item">
<div class="o-image-container">
<img src="http://placehold.it/350x350">
</div>
</div>
<div class="c-showcase-item">
<div class="o-image-container">
<img src="http://placehold.it/350x350">
</div>
</div>
<div class="c-showcase-item">
<div class="o-image-container">
<img src="http://placehold.it/350x350">
</div>
</div>
<div class="c-showcase-item">
<div class="o-image-container">
<img src="http://placehold.it/350x350">
</div>
</div>
<div class="c-showcase-item">
<div class="o-image-container">
<img src="http://placehold.it/350x350">
</div>
</div>
<div class="c-showcase-item">
<div class="o-image-container">
<img src="http://placehold.it/350x350">
</div>
</div>
<div class="c-showcase-item">
<div class="o-image-container">
<img src="http://placehold.it/350x350">
</div>
</div>
</div>
</div>