CSS justify-content property
CSS justify-content property aligns the content horizontally (along main/inline/row axis).
justify-content : baseline | center | stretch | flex-start | flex-end | space-between | space-around | space-evenly
It stretches out the descendant elements to fill the height completely.
It aligns multiple objects (elements) on same shared space such as cells within a row.
It aligns the content elements at the middle of cotainer.
It stretches all of the objects (elements) in such a way that they occupy the full height of the container.
flex-start aligns the content at the start of flex container.
flex-end aligns the content at the end of the flex container.
In this case, first object is aligned at the start of container and last object is aligned at the end of the container. The remaining objects are placed in such a way that white space is distributed equally among any two objects.
The objects are distributed in such a way that there is same space between the objects except at the start and end of the container. There is half sized space (half of the space that is between any two objects) before the first object and after the last object.
It adjusts the alignment of objects so as to distribute equal space between and around the objects.
It applies to multicol containers, flex containers, and grid containers.
Was this article helpful?