Centering Items in a Flex Container
Spot why a flex container fails to horizontally center its items despite a centering rule.
Codecss
.container {
display: flex;
flex-direction: column;
height: 300px;
/* goal: stack items vertically AND center them horizontally */
justify-items: center;
}
.item {
width: 100px;
padding: 8px;
}The items are not being horizontally centered. What is the bug?