i have code with me ready and i can share with anyone, somehow stack-overflow keep giving me error while loading code.
i do created box and write all content inside the box , while applying CSS property justify-content: center it actually not working.
2
Answers
Justify-content is sub-property of flex box so for using justify-content you have to add display flex I attached an example over here.
The CSS justify-content property defines how the browser distributes space between and around content items along the main-axis of a
flex
container, and the inline axis of agrid
container.Explained in the first sentence of https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
Mening you need
display: flex; justify-content: center;