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

Responsive Navigation

Looking for a Responsive Navigation bar like here: http://blog.teamtreehouse.com/create-an-absolute-basic-mobile-css-responsive-navigation-menu

Should work out quiet the same, I just need a mobile first approach. I already tried to flip around the mediaquery, but always failed. Any suggestions or already written code?

2 Answers

Can you post your code?

Remember to design you page for Mobil First, then use the @media to make it progressively more complex for larger screens.

You can always inspect elements on a given page to see how things are done. I caution you from taking somebody elses code without their permission but, you can at least see how they set it up.

To get the media query set properly you need to have something like this..

@media screen and (max-width: 750px) {

}

This would set a break point where anything inside that query would be until the screen gets to 750px. After looking at the site you linked to, it appears that this is how they styled the responsive layout. There is only the single break point that happens at a specific max width of 767px.

Anything outside of that example query would happen starting at 751px. So on the site you linked to, this is when the regular navigation actually appears versus the small little bars that open a side menu.