Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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 upRelated 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