Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Controlling the Direction of Flex Items 3:47
- Wrapping Flex Items 2:33
- Distributing Space Inside a Flex Container 5:55
- Changing the Order of Flex Items 5:32
- Wrapping Items and Distributing Space 3 objectives
- Growing Flex Items 3:42
- Smarter Layouts with flex-basis and flex 6:42
- Aligning Flex Items on the Cross Axis 3:43
- Growing and Aligning Flex Items 3 objectives
- Vertical and Horizontal Centering 4:14
- Flexbox Properties Review 6 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Learn how to align flex items on the cross axis with the align-items and align-self properties.
Resources
Video review
- The
align-items
property applies to flex containers only. - The
align-self
property applies to flex items only. -
align-items
aligns flex items vertically in the flex container. - To align all flex items to the start of the cross axis, use the
align-items: flex-start;
. -
align-items: flex-end;
packs the items toward the end of the cross axis. -
align-items: center;
perfectly centers items along the cross axis. -
align-self: flex-start;
aligns a flex item to the start of the cross axis. -
align-self: flex-end;
aligns a flex item to the end of the cross axis. -
align-self: center;
aligns a flex item to the center of the cross axis.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points1 Answer
-
Patrick Vanegas
6,971 Points1 Answer
-
John Yzaguirre
22,025 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up