CSS Flexbox: align-content

The align-content property in CSS Flexbox is used to align multiple rows of flex items along the cross axis of the container (vertically if the flex-direction property is set on row). It applies only when flex-wrap property is set to wrap.

stretch

1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4

flex-start

1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4

flex-end

1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4

center

1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4

space-between

1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4

space-around

1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4

space-evenly

1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4

safe – supported by Firefox

1
2
3
4
5
6
7
8
9
10
11
12
13
14

unsafe – supported by Firefox

1
2
3
4
5
6
7
8
9
10
11
12
13
14

Related

Resources

Posted in CSS

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.