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

Oleg Mogytych
Oleg Mogytych
10,684 Points

Better solution for "Building a Navigation Bar with Flexbox"

I made more simple method with less code. Please take a look is it correct solution or not, result seems to be the same

@media (min-width: 769px) {

.main-nav { display:flex; justify-content:center; } }

@media (min-width: 1025px) {

.main-header { display:flex; justify-content:space-between; } }

1 Answer

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

Well done on finding a different approach to the same solution. However, the purpose of the video is to teach you the methods/properties of flexbox, it's intention is therefore not a "best" solution to the example approach.