<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>
Why doesn't this code make the purple square centered in the page? The flex-direction
property set to column should have placed it in the middle vertically right?