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 trialRichard Targett
4,960 PointsMulti line flex?
I tried :multi-flex
Didnt work. What am I doing wrong?
6 Answers
Jonathan Grieve
Treehouse Moderator 91,253 PointsTry using flex: flex-wrap property on your flex container. This will ensure your items go to a new line when it needs to :-)
Richard Targett
4,960 PointsIm still lost :\
Richard Targett
4,960 Points.row { display: flex; justify-content: center; }
I tried this and this:
flex: flex-wrap
Richard Targett
4,960 PointsNothing worked :[
Jonathan Grieve
Treehouse Moderator 91,253 PointsRight, my apologies,
I got this wrong just ever so slightly :)
The property you want to use is flex-wrap: wrap; where Flex-wrap is the property and wrap is the value
So you set your flex container context.
display: flex;
and then set flex-wrap like this
.row {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
My apologies, I just got mixed up :)
Richard Targett
4,960 PointsI always get stuck on these test :__(
Jonathan Grieve
Treehouse Moderator 91,253 PointsUse space-between to distribute the space between your flex items.
justify-content: space-between;