I would like to have an image centered horizontally and vertically in a div
which is also centered (horizontally) in another div.
I imagine this being done like this:
<div class="grandad">
<div class="parent">
<img src="someUrl"/>
</div>
</div>
https://codepen.io/lucasactimo/pen/qBOzjwb
But I can't manage to find the right CSS rules to achieve this arrangement. Some help would be very much appreciated!