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

CSS How to Make a Website Responsive Web Design and Testing Adjust the Profile Page and Header

Jared Rushton
Jared Rushton
843 Points

When I made the changes to the nav section of the 2nd @media rule my "contact" element drops below the other two navs?

It occurs right before the 660px breaking point. For most of the changed of resolution from 480 to 660 it is fine until just before the 660 break point. Then "Contact" drops underneath the "About" anchor.

2 Answers

Hi Jared,

Usually this can be simply to do with padding or margin on individual element and there not being enough space on that line to hold them with those sizes.

Are you using % based Margins / Padding or Fixed Pixel ?

If fixed pixel try reducing the padding by a couple of pixels to over come the layout mishap!

Hope this helps Craig

Jared Rushton
Jared Rushton
843 Points

Thank you so much Craig! I reduced the padding as you mentioned and the problem is now gone!

Portia Odell
Portia Odell
1,497 Points

I had this same issue and I changed the width of the navigation from 45% to 50% - this fixed it!