With parent div that is position relative and display flex, align-items: center, the child component which is positioned absolutely is not centered as expected but instead the top of that component is centered
Does anyone know how to get around this quirk?
https://codepen.io/anon/pen/aYXJZe
.crumb {
width: 100%;
margin-top: 100px;
height: 100px;
background-color: grey;
}
.arrowWrapper {
height: 100px;
width: 100px;
background-color: red;
display: flex;
align-items: center;
position: relative;
}
.arrow {
height: 150px;
width: 80px;
background-color: blue;
position: absolute;
}
<div class="crumb">
<div class="arrowWrapper">
<span class="arrow"></span>
</div>
</div>