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 trialJared Rushton
843 PointsWhen 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
Craig Watson
27,930 PointsHi 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
Portia Odell
1,497 PointsI had this same issue and I changed the width of the navigation from 45% to 50% - this fixed it!
Jared Rushton
843 PointsJared Rushton
843 PointsThank you so much Craig! I reduced the padding as you mentioned and the problem is now gone!