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

Conuir Williamson
Conuir Williamson
7,825 Points

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

Swapnil Srivastava
Swapnil Srivastava
13,146 Points

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.

Richard Targett
Richard Targett
4,960 Points

Im not sure what the syntax should be :]\

Conuir Williamson
Conuir Williamson
7,825 Points

They've got the answer (Y) ;)

Thanks a lot, it worked perfectly.

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

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