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 Basics (2014) Basic Selectors Basic Selectors Review

Miguel Nunez
Miguel Nunez
3,266 Points

How to have a desktop navigation menu bar turn into a hamburger navigation menu button when web browser shrinks

I want to do this like YouTube when you shrink your web browser the website turns into a mobile version of the website I got media queries to make the website turn into a mobile version website but now when I enlarge the browser now the desktop navigation bar is gone I think it’s because I used display none so much and display inherit or block to show in different browser sizes that now the desktop navigation bar doesn't ’ show anymore and I don’t want to use CSS hide which leaves space. And ps I already have a hamburger navigation button so I don’t need help on making one.

Could you share your code with us? Thanks!

Miguel Nunez
Miguel Nunez
3,266 Points

Never mind I figure it out basically I made a div class which the nav wasn't a group of things it is one thing so I change it to a id selector and it worked :) thanks for trying to help out.