Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Flexbox Layout Flexbox Properties Smarter Layouts with flex-basis and flex

Ryan Schmelter
Ryan Schmelter
9,710 Points

Does flex basis value apply to the container or each item?

When using flex-basis, does the value only apply to each item. For example, if I set a flex-basis of 200px, will it wrap once one of the items is 200px, or the whole container?

1 Answer

ywang04
ywang04
6,762 Points

flex and flex-basis apply to flex items only.