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 Using jQuery Plugins Add a Sticky Navigation Bar The Plugin Challenge Solution

Jason Welsh
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jason Welsh
Treehouse Project Reviewer

This looks awful on mobile. Why?

Has anyone looked at this on a mobile layout? The top nav disappears, and the formatting is dreadful. How would we make this app better at responsive? Add class hooks and use media queries?

2 Answers

Timo J.
PLUS
Timo J.
Courses Plus Student 20,919 Points

Hello Jason,

Depending of the length of your menu, on mobile device you should have an hamburger menu which appear. There is courses on tree house about that.

Jason Welsh
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jason Welsh
Treehouse Project Reviewer

Thanks for your reply. Can you link to a video that shows how to do the hamburger menu? I have not learned that yet.

Timo J.
PLUS
Timo J.
Courses Plus Student 20,919 Points

Sorry Jason I was wrong. The hamburger menu course wasn't in treehouse. Here is three other solutions.

1/ This is a course on tree house to build a responsive navigation with flexbox: https://teamtreehouse.com/library/build-a-responsive-navigation-with-flexbox

2/ You can find a tutorial of hamburger menu you youtube. https://www.youtube.com/watch?v=6m6iqN1uynE

3/ You can use Bootstrap hamburger navigation menu ready to use. https://v4-alpha.getbootstrap.com/components/navbar/

Hope this help.