Hi I have already referenced this issue and tried its answers Flexbox Not Centering Vertically in IE
However the button I have still will not center in IE, it works on all other browsers.
Here is the HTML
<div class="captioned-video">
<div class="video-container" data-module-dynamic="embed-video">
<img src="img here"/>
<button class="play" data-video="video url here"></button>
</div>
<div class="caption">
<h3 class="caption__subhead">Caption Headline</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing 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.</p>
</div>
</div>
And my less
.captioned-video {
border: 1px solid @light-slate;
padding: 20px;
display: flex;
flex-direction: column;
.video-container {
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
img {
flex: none;
}
iframe /*iframe is here because on btn click the img is swapped to this*/{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.play {
width: 100px;
height: 100px;
border-radius: 100%;
border: none;
background-color: rgba(200, 81, 8, 0.8);
position: absolute;
padding: 0;
&:hover {
transition: all ease 0.5s;
background-color: rgba(200, 81, 8, 1);
}
&:after {
content: "";
position: relative;
display: inline-block;
border-style: solid;
border-width: 20px 0 20px 30px;
border-color: transparent transparent transparent white;
top: 2px;
left: 5px
}
}
}
.caption {
.caption__subhead {
color: @royal-blue;
font-family: @headings-font-family;
font-size: 14px;
}
p {
font-size: 12px;
font-style: @font-family-sans-serif;
}
}
}
What am I missing if I inspect element on the button in ie ii is not visible but with element highlighting it appears to be under the image, perhaps a positioning issue?