Why isn't my element centering even with justify-content and align-items?
The most common cause is the flex container having no defined height, without a height (or min-height: 100vh, for example), align-items has no extra vertical space to distribute and the element ends up "centered" inside an area the size of the content itself.
Does place-items: center replace justify-content and align-items?
place-items is a CSS Grid shorthand, not a Flexbox one, it does not exist as a flex container property. In Flexbox, it is always two separate properties (justify-content for the main axis, align-items for the cross one).
Does centering with margin: auto still make sense inside flexbox?
Yes, for specific cases. `margin: auto` on a flex item absorbs all available free space in that direction, useful for pushing a single item to the right (e.g., a logout button at the end of a navbar) without needing justify-content: space-between.