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 trialDominika Hołota
4,936 PointsDifferent 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?
2 Answers
Dominika Hołota
4,936 Points@media (min-width: 769px) { was predefined by workspace...
Sofia Woods
814 PointsHi 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; }
}
Claire Chen
3,675 PointsClaire Chen
3,675 PointsMedia type is missed. @media screen and (min-width: 769px) {}