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 Flexbox Layout Building a Layout with Flexbox Building a Navigation Bar with Flexbox

Dominika Hołota
Dominika Hołota
4,936 Points

Different solution?

@media (min-width: 769px) {

.main-nav {

display: flex; justify-content:center;

}

@media (min-width: 1025px) {

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

.name { margin-right: auto; }

}

it's ok?

Claire Chen
Claire Chen
3,675 Points

Media type is missed. @media screen and (min-width: 769px) {}

2 Answers

Dominika Hołota
Dominika Hołota
4,936 Points

@media (min-width: 769px) { was predefined by workspace...

Sofia Woods
Sofia Woods
814 Points

Hi there - yes I had the same question -

I had this - this seemed to work - is this okay?

@media (min-width: 1025px) { .main-header{ flex-direction: row; } .name{ margin-right: auto; }

}