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

3 Answers

Steven Parker
Steven Parker
231,236 Points

Even MDN, my usual go-to reference, is a bit vague on this; but it does describe the amusing history of the "auto" setting. Apparently even the creators weren't sure what it should do and changed it a few times. See the MDN page on flex-basis.

Another good source of information is A Complete Guide to Flexbox on CSS Tricks.

But some time spent experimenting on a sandbox tool may be more valuable than any documentation.
My favorites are:

Steven Parker
Steven Parker
231,236 Points

That just means there's no minimum, so it fits the contents.