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

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

John Wilson
John Wilson
11,739 Points

CSS in Perform Part 3, jquery basics is NOT working?

I am pretty sure I have the exact CSS that Andrew entered, yet my menu bar and button is not affected.

John Wilson
John Wilson
11,739 Points

Here is my CSS code:

/** Start Coding Here **/

/** Modify CSS to hide links on small width and showbutton and select Also hides select and button on larger width and show's links **/

@media (min-width: 320px) and (max-width: 568px) { #menu ul { display:none; } }

@media (min-width: 568px) { #menu select, #menu button{ display:none; } }

1 Answer

Robert Stefanic
Robert Stefanic
35,170 Points

It's hard to go off what you've given, but if you have the exact CSS as Andrew, and your menu-bar isn't responding to the change in the view-port, then it could be your Javascript. Check your JavaScript and make sure that you jQuery is the similar to Andrew's.