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 - Beyond the Basics Understanding Flexbox and Multi-Column Layout Flexbox Challenge

flex box challenge step 4

So I am unable to get this challenge to pass and I'm not sure if its related to my syntax? Any explanation would be most helpful, thank you!

/* Complete the challenge by writing CSS below */

.main {
 display: -webkit-flex;

.nav {

.nav li {

.primary {
  order: 1;
<!DOCTYPE html>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
    <ul class="nav">
        <li><a href="#">Home</a></li>
        <li><a href="#">About</a></li>
        <li><a href="#">Articles</a></li>
        <li><a href="#">Contact</a></li>
    <div class="main">
        <div class="secondary col">
                Maecenas volutpat nisi vitae purus gravida, ac pulvinar enim venenatis. Fusce ac pharetra ipsum. Suspendisse potenti. Etiam placerat rhoncus mi id ornare.
        <div class="primary col">
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent id mollis neque. Phasellus rutrum iaculis ante, id tincidunt tellus pulvinar vitae. Maecenas sodales mollis nisi sit amet congue. 
                Duis pharetra, sem in dictum posuere, justo orci vestibulum arcu, vitae lobortis ipsum nibh sed dolor. Vestibulum sodales pulvinar risus vel fermentum. Nunc sit amet eros eget orci euismod imperdiet. Phasellus scelerisque orci non ipsum vestibulum non eleifend.
        <div class="tertiary col">
                Donec id ultrices diam. Praesent efficitur vulputate eros ac aliquam. Ut et libero ultricies, mattis velit sit amet, suscipit sem. Aenean dictum pellentesque tincidunt. 

2 Answers

Btw here is the original instruction.....Finally, let's use flexbox to change the order of our columns. In the .primary rule, add the flexbox property and value

Hi Justin,

I see a couple issues. Take another look at the value you're giving to order and if you need a great reference, checkout CSS-Tricks' Guide to Flexbox. Fixing this part will pass the challenge, but I'll also point out that


should not be passing, but the challenge parses it as correct. flex-wrap is the property and wrap is the value. The display property is not needed here.

Here is the correct way of writing that line:

.nav {
  flex-wrap: wrap;

Please let me know if this helps or not :)


This was great! I appreciate you pointing out those specific details. Code looks much better and I was able to figure it out quickly! Thanks!!