First off, this is probably happening in older versions of IE too but I only have 11 to hand for testing at the moment!
I have used display: flex in a 3 column setup, so that the buttons at the bottom of each column line up vertically; important as the lengths of the text above them vary quite a lot.
This is working absolutely fine in Chrome, Firefox, Safari (on MacOS and iOS) and on Android devices, but on IE 11 it randomly adds a massive gap between the images at the top of each column, and the text & button below. I'm aware that flex is a bit buggy in IE but I haven't found anything online about this specific issue. It's odd as the alignment side of things is working, but this random gap in each column needs to go.
HTML:
<div class="row">
<div class="flex_col_1_of_3">
IMAGE 1 GOES HERE
<h3><a href=“/link”>TITLE 1 GOES HERE</a></h3>
<p>MAIN TEXT GOES HERE.<br>
<a style="display:block" href=“/LINK”><div class="button">Read More ></div></a></div>
<div class="flex_col_2_of_3">
IMAGE 2 GOES HERE
<h3><a href=“/link”>TITLE 2 GOES HERE</a></h3>
<p>MAIN TEXT GOES HERE.<br>
<a style="display:block" href=“/LINK”><div class="button">Read More ></div></a></div>
<div class="flex_col_2_of_3">
IMAGE 3 GOES HERE
<h3><a href=“/link”>TITLE 3 GOES HERE</a></h3>
<p>MAIN TEXT GOES HERE.<br>
<a style="display:block" href=“/LINK”><div class="button">Read More ></div></a></div>
CSS:
.row {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -o-flex;
display: flex;
width: 100%;
margin: auto;
padding-bottom: 20px;
}
.flex_col_1_of_3, .flex_col_2_of_3 {
width: 32%;
text-align: center;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -o-flex;
display: flex;
flex-direction: column;
}
.flex_col_2_of_3 {
margin-left: 2%;
}
Does anyone have any advice as to how to avoid this issue please? Thanks!