"Build a Simple Android App with Kotlin" was retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed CSS Flexbox Layout!
You have completed CSS Flexbox Layout!
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
-
flexandflex-basisapply to flex items only. -
flex-basisspecifies 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.
-
flexis the shorthand forflex-grow,flex-basisandflex-shrink. - Using only one number value for
flexsets theflex-growvalue of an item. - The second and third values are optional in the
flexshorthand. - Setting only one number value for
flexautomatically sets theflex-basisvalue 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