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 Layout Techniques Flexbox Layout Flexbox Layout Challenge

Flexbox-layout challenge 2

.main-nav{ display: flex; }

.main-logo{ flex: 1; }

/* I have also tried..*/

.main-nav { display: flex; flex: 1; }

What am I missing here?

Thanks!

3 Answers

Austin Davis
Austin Davis
23,939 Points

Before simply giving you the answer...... You should be receiving an error that states "make sure you are using the correct flex-grow property" (that is what I received when testing your code in the challenge). This error is a big hint and I hope it helps you figure it out. If not, try watching the video one more time while you keep that error in mind and I'm sure you can get it.

Lol, Austin. I feel like a dumby. Gotta remember to take more brain breaks!

Thanks for your humble reminder ; )

Austin Davis
Austin Davis
23,939 Points

Haha, no worries Evan. In my short experience learning CSS with Treehouse I've already noticed it's often the simplest answer that can be the most elusive. Glad I could help!