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 Wrapping Items and Distributing Space

Next, give .row the flexbox property and value that will make it a multi-line flex container.

I don't understand why my answer is not right:

.row { display: flex; flex-direction: column; }

8 Answers

The direction isn't the property you're looking for. Think of multi line text - it 'wraps' ;)

The correct answer will be .row { display: flex; flex-wrap: wrap; }

I just encountered this problem. In hindsight it makes sense, but I think the wording on the question is a little confusing.

This question is not properly worded it's confusing I was also thinking of flex-direction: column;

Im not sure what the syntax should be :]\

They've got the answer (Y) ;)

Thanks a lot, it worked perfectly.

.row{ display:flex; flex-wrap:wrap; }

.row { display:flex; flex-wrap:wrap; }