Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript jQuery Basics (2014) Creating a Mobile Drop Down Menu Perform: Part 3

Why doesn't the original menu go away when screen gets smaller?

Here is my workspace: https://w.trhou.se/933ctldtip

I feel like I am making a simple mistake, but I don't know why the original menu is not going away when the screen gets narrow. I believe I added the css correctly.

The select shows up when narrow, but the original menu does not go away.

Can you help me?

1 Answer

Thanks for responding. I realize that the issue was the comments in the .css file. When copying over from the app.js file, we brought over the comments using the // format.

CSS requires /* */ styled comments.