Now that we have seen how alignment works on the cross axis, we can take a look at the main axis.
How do i set my prints to center using flexi 12 free#
As before, we need enough space in the cross axis to have some free space after displaying all of the items. Once again we can switch our flex-direction to column in order to see how this property behaves when we are working by column. Try out the other values to see how the align-content property works. The value of align-content is space-between, which means that the available space is shared out between the flex lines, which are placed flush with the start and end of the container on the cross axis. In the live example below, the flex container has a height of 400 pixels, which is more than needed to display our items.