I can't seem to figure out this error, even though it seems simple.
.box {
display: flex;
align-items: center;
justify-content: center;
}
<div class="box">
<div><img src="https://via.placeholder.com/150x150" alt=""></div>
</div>
Despite following the code from MDN, my image still refuses to be centered.
I found a helpful link on CSS Flexible Box Layout: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Aligning_Items_in_a_Flex_Container
View my page here: