
Your options for vertical alignment are top, middle, bottom, and stretch. This behavior can be changed with another set of alignment classes. Learn more about justify-content.īy default, all columns in a flex grid stretch to be equal height. The horizontal alignment classes are shorthands for the justify-content CSS property.

This means there will always be space to the left of the first column, and to the right of the last column.

The first and last columns pin to the edge of the grid.Ī spaced grid ( justify-content: space-around) evenly distributes the space around each column. A justified grid ( justify-content: space-between) evenly distributes the space between each column.

You might be wondering what the difference between.
