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 trialBen Musholt
4,983 PointsWhy is the spacing of my Nav elements off? There is a large gap between "Portfolio" and "About" in my navigation bar.
I followed the HTML and CSS code for the nav element, but there is a large gap between "Portfolio" and "About" in the navigation bar.
Ben Musholt
4,983 PointsHere is a snapshot of the workspace. Thanks for looking at it. https://w.trhou.se/ugevfbq6tn
johannaho
4,150 PointsHi Ben, I found a small error in your code: Portfolio<a/>. Should be </a>. Maybe that's causing the gap.
Annette Whaley
3,215 PointsI was going to comment on the <a/> typo as well johannaho. That is the issue.
2 Answers
Steven Parker
231,269 PointsI agree with Johann and Annette, The browser thinks everything following that first link is inside the link. But I'm surprised you didn't notice it in the workspace editor. The moment I opened it, I spotted the red highlighting it placed on the next tag (because of tag overlap).
You have exactly the same issue in "about.html" and "contact.html", too.
Ben Musholt
4,983 PointsThat was totally it. Thank you Steven, Annette, and Johanna!
Steven Parker
231,269 PointsSteven Parker
231,269 PointsWe might be able to help if we can see your code.
Use the "snapshot" function in the workspace and post the link it gives you here.