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

General Discussion

Nav bar links not working?

Hey. The nav bar links don't work on my page. I've checked the code and all looks fine. And my gallery image links are working okay to.

Any idea why this would happen. Been searching for hours now and can't find a solution :(

http://web-09wltlfyez.treehouse-app.com/

Thanks

5 Answers

This is a z-index issue with your feature-area. It is essentially layered over your header.

header {
  position: relative;
  z-index: 10;
}
#feature-area {
  position: relative;
  z-index: 1;
}

This should solve your issue.

THANK YOU :) !!!!!!

That did the trick

You're very welcome. I'm glad it worked for you.

Hey Joshua

the change has caused a slight problem with the space under my pic. When I use a negative margin like before it effects the padding in the featured optin. Any suggestions ? Thanks

This is what I'm seeing in Chrome.

The z-index, itself, shouldn't be causing any padding issues. Can you send me a screen capture of what you're seeing, and what browser you're using?

Hi Joshua. Thanks for your reply. Really appreciate it! :)

I've sorted it now. My header is float left, and it was making my feature area do the same (not sure why), so I used clear:left; on feature area.