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

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

Juan Iracheta
Juan Iracheta
4,457 Points

Spacing Issues on Nav + Nav line breaking after "About"

It seems there's some spacing issues between my nav links. The "Portfolio" and "About" links seem to be evenly spaced and then there's a gap between "About" and "Contact". This only seems to be on my index page though, but still I can't pinpoint the issue.

Also, whenever I expand my window to the desktop layout there's a line break after "About" so "Contact" ends up wrapping under the "Portfolio" and "About" links. This, however, only happens when my desktop layout is not extended to full width. If I keep extending it the nav links eventually come inline again. I have reviewed my main and responsive css files and can't find the issue.

Here's a snapshot of my code,

https://w.trhou.se/eklhf9ukcs

Any ideas?

1 Answer

Steven Parker
Steven Parker
231,275 Points

:point_right: You have a stray (and malformed) anchor tag ("<a/>") on line 21 of index.html.

And while it doesn't cause an error, you have a duplicated class="selected" on line 21.

You can fix the wrapping just by moving your desktop break point from 660px to about 720px.

Juan Iracheta
Juan Iracheta
4,457 Points

Wow. Thank you so much. I saw the duplicated class after i took the snapshot. I need to be more careful. Thanks again!