HomeGuideLabGlossary

Give space to auto margins in the cross direction

This works the same way as it did for the main axis

There may or may not be space left. If there is, it gets evenly split among the auto margins.

111AAAA1

Giving space to auto margins

This happens separately for each flex item:

1
??AA1
AA1
AA1

You might want to align the flex item with align-self instead.

The effect of using flex item auto margins in the cross axis can be more easily achieved with align-self. You might want to use that instead.

1AA1=align-self: center