• 2.5.0
<div class="relative-parent" style="height: 200px; background: #eee">
    <img src="https://placehold.it/200x100" style="position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%)">
</div>

Set the element position to relative, useful to align absolute children.