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 the flex-basis property gives you even more control over the size of flex items, and how the flex shorthand property intelligently sets flexbox values when you don't specify them.
Resources
Video review
-
flex
andflex-basis
apply to flex items only. -
flex-basis
specifies the initial main size of a flex item. - You set the initial size you want the flex items to be, then flexbox evenly distributes the free space according that size.
-
flex
is the shorthand forflex-grow
,flex-basis
andflex-shrink
. - Using only one number value for
flex
sets theflex-grow
value of an item. - The second and third values are optional in the
flex
shorthand. - Setting only one number value for
flex
automatically sets theflex-basis
value to0
.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Barcode George
595 Points1 Answer
-
Frank Book
308 Points1 Answer
-
Peter Huang
5,427 Points1 Answer
-
ja5on
10,338 Points1 Answer
-
ja5on
10,338 Points1 Answer
-
ja5on
10,338 Points1 Answer
-
xajx
6,553 Points1 Answer
-
Vasilis Moutzouridis
4,450 Points2 Answers
-
Victor Mercier
14,667 Points1 Answer
-
Seokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,606 Points2 Answers
-
Matthew McKenzie
4,450 Points1 Answer
-
guram dgebuadze
Front End Web Development Techdegree Student 4,122 Points2 Answers
-
Michael Pashkov
22,024 Points1 Answer
-
guram dgebuadze
Front End Web Development Techdegree Student 4,122 Points3 Answers
-
xin song
1,929 PointsFlex-basis: 0 still break the line when narrowing the browser.
Posted by xin songxin song
1,929 Points1 Answer
-
yoav green
8,611 Points1 Answer
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