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.

CSS

Ben Stoltz
Ben Stoltz
20,364 Points

CSS-Layout-Techniques Flexbox final challenge

Hey there. So for the flexbox final challenge I'm currently using: '''css .secondary{ -webkit-order: 1;} ''' to try to solve the challenge. It should complete the challenge, looking at the preview it certainly switches the columns, however I have noted several things.

1) It doesn't complete the challenge and still says it is incorrect. I have also tried it with a display: flex; and setting the order of .primary to 2nd, still no joy.

2) If I just write the code in on challenge 4 it doesn't properly run it and does NOT change the order of the column, however if I copy my final code, refresh the page resetting the challenges, and paste it in it displays fine.

If I'm overlooking something mind-numbingly obvious please let me know...sleep deprivation and end of a college semester might be making my brain particularly obtuse.

1 Answer

Ben Stoltz
Ben Stoltz
20,364 Points

Nevermind, solved it by changing the order to -1 instead of 1. (though theoretically specifying the values for .primary and .secondary should also get the desired result, and in fact did.)