So, i'm triyng´to vertically center 2 divs with flexbox, it centers on all major browsers but it doesn't center properly on IE11.
Searching about this i found that there's a problem centering divs with min-height, but i'm not using it, so i don't know what is wrong or missing.
.container {
position: relative;
display: flex;
align-items: center;
}
img {
max-width: 100%;
}
.prev {
width: 40px;
height: 40px;
background: rgba(0,0,0,.8);
position: absolute;
left: 30px;
}
.next {
width: 40px;
height: 40px;
background: rgba(0,0,0,.8);
position: absolute;
right: 30px;
}
<div class="container">
<img src="https://www.w3schools.com/css/trolltunga.jpg">
<div class="prev"></div>
<div class="next"></div>
</div>