Flexible Box Layout module<\/a>.<\/p>\n\n\n\nIt defines the alignment along the main axis. It helps distribute extra free space leftover when either all the flex items on a line are inflexible, or are flexible but have reached their maximum size. It also exerts some control over the alignment of items when they overflow the line.<\/p>\n\n\n\n
The justify-content<\/code> property accepts five different values:<\/p>\n\n\n\nflex-start<\/code> (default<\/strong>): items are packed toward the start line<\/li>flex-end<\/code>: items are packed toward to end line<\/li>center<\/code>: items are centered along the line<\/li>space-between<\/code>: items are evenly distributed in the line; first item is on the start line, last item on the end line<\/li>space-around<\/code>: items are evenly distributed in the line with equal space around them<\/li>space-evenly<\/code>: items are distributed so that the spacing between any two adjacent alignment subjects, before the first alignment subject, and after the last alignment subject is the same<\/li><\/ul>\n\n\n\nThe following figure helps understand what the justify-content<\/code> property actually does:<\/p>\n\n\n\n