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 Creating HTML Content Use the Navigation Element

How do I get rid of the extra spaces that show up in my preview?

I have been following the training very closely, but for some reason, I will have extra spaces that show up in my preview, in between about and contact and after contact. I don't know how to fix the html so that I can get rid of them.

2 Answers

Gianni Zamora
Gianni Zamora
9,547 Points

If you have extra spacing you might have some space in the actual code <span>hello </span> will have 1 space after hello on your website but <span>hello</span> will have 0 space after hello making anything that comes after it directly next to it. look closely on your code and you might find this if not post code on here.

I got it to work now, thanks for the help:)

Can you show your code so we can diagnose the problem for you

I got it to work now!:)