ДЕМО
(свойство align-content)

align-content:

flex-start
1
2
3
4
5
flex-end
1
2
3
4
5
center
1
2
3
4
5
space-between
1
2
3
4
5
space-aroun
1
2
3
4
5
stretch
1
2
3
4
5