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 trialguram dgebuadze
Front End Web Development Techdegree Student 4,122 Pointsflex-basiis
can someone help i cant get what it does with auto, initial, 0, integer or etc. what's the differences? (this lesson is so uninformative)
3 Answers
Steven Parker
231,269 PointsEven 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:
guram dgebuadze
Front End Web Development Techdegree Student 4,122 PointsThe most consufing is flex-basis: 0; I can't get it.
Steven Parker
231,269 PointsThat just means there's no minimum, so it fits the contents.
guram dgebuadze
Front End Web Development Techdegree Student 4,122 Pointsauto also fits content when there is no size determined, but items look differently what is the difference.