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

Peter Retvari
seal-mask
.a{fill-rule:evenodd;}techdegree
Peter Retvari
Full Stack JavaScript Techdegree Student 8,392 Points

The navigation links disappear when we and Dave are resizing the window

Hi Folks,

The navigation links disappear when we and Dave are resizing the window ( you can clearly see in the video at 06:26). What if I would like to keep the nav menu and put under the email spoiler? Do I have to use css flex style max-widht/ max-height to optimise it or is there any other simple solution?

1 Answer

Peter Retvari
seal-mask
.a{fill-rule:evenodd;}techdegree
Peter Retvari
Full Stack JavaScript Techdegree Student 8,392 Points

I managed it with @media:

@media (max-width:722px){

.is-sticky .work {

  background-color: white;
  margin-top: 53px;


}

@media (min-width: 701px) and (max-width:722px){

.is-sticky .work {

  background-color: white;
  margin-top: 1px;


}

But I still don't understand why can I easily set this in plugin, e.g.: for small devices, medium, large etc.