Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Calvin Maighan
12,061 PointsCSS Layout Techniques: Flexbox Layout Challenge (HELP!)
I watched the videos and completely understood, or so I thought. Now, the challenge is asking me to change the order of the columns in flexbox.
Here is my code:
.secondary {
display: flex;
order: -1;
}
I am pretty sure this is supposed to work, cause nothing in the videos would indicate otherwise...
If I did something wrong please let me know!
1 Answer

Jacob Miller
12,466 PointsYou need to remove the display: flex;
from .secondary
. "A flex container expands items to fill available free space, or shrinks them to prevent overflow," so you only need to add display: flex;
to the containing element.
Calvin Maighan
12,061 PointsCalvin Maighan
12,061 PointsWow, I don't know why I didn't try that. Guess I was a little frustrated that whatever else I tried didn't work... Thanks a million! :)