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 Flex Items

flex-wrap not working for me

I am trying workspace with the following code but it doesn't work

.container{
  display: flex;
  flex-wrap:wrap;
  flex-direction:column;
  transition:all;
  height:50px;
}

1 Answer

Steven Parker
Steven Parker
231,269 Points

I don't see anything wrong with this bit of code, you might need to share your complete project to demonstrate the issue. You can do that easily if you make a snapshot (note: not "screenshot") of your workspace and post the link to it here.

Also, have you seen these additional fun learning resources for flexbox?

Adam Fajder
Adam Fajder
5,182 Points

Steven Parker oh man this flexbox zombies is a true gem! Thanks for this!

Steven Parker
Steven Parker
231,269 Points

Now every time you work with flexbox, you'll picture that laser-aimed crossbow. :wink: