Justify content doesn't work

I’m trying to center the content in this project GitHub - onna4/interactive-rating-component but all the properties work except the justify content property. any ideas?

The body has to have a height. Set it to 100vh

Personally, I prefer using grid for centering as it takes fewer properties (you still need the height).

display: grid;
place-content: center;
height: 100vh;

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.