<style>
.maincont {
width: 8em;
height: 8em;
background: purple;
}
body {
background: limegreen;
display: flex;
flex-direction: column;
place-content: center;
place-items: center;
}
</style>
<body>
<div class="maincont"></div>
</body>
Can you figure out why the purple square isn't centered on the page despite using the flex-direction
property with a value of column?