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

Want us to work on your project? Email us element covers up the navigation elements once you drop to 699px and below.

How can I get the 'Want us to work on your project? Email us' element to drop below the original nav elements when the screen size drops below 700px? I'm sure there is a media query of some sort that I'm not familiar with, to handle just this situation.

2 Answers

I agree, I think @media is a decent and quick fix. Checking it out on a mobile, I think having both stick to the top of the page takes up too much screen space anyway. I added this to the CSS:

@media (max-width: 700px) { .is-sticky .work { display:none; } }

Hey Daniel,

Use CSS media queries in a stylesheet. Use max-width to define at what size of screen and below that the media query should come into play:

@media (max-width: 699px) {
/* Code here */
}