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

Blank white bar going across the top of only 1 of 3 pages on website created on HTML course.

I know this is probably very basic but I'm a beginner on web development.

I went through the Web Design course with Nick Pettit and created 'My First Website'

I have finished this but now my 'About' page shows a white bar across the top but my 'Portfolio' page and 'Contact' page show fine. They are all connected to the same css stylesheet so it is strange why this is happening.

This is happening on Mobile device, chrome and IE.

It's quite a small thing but may be handy to know in the future?

Thanks

Hello Jennifer,

Please see link below:

https://w.trhou.se/f67eh0og35

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! I believe I found the problem. In your about page you have an h3 element. And this has by default, a top margin which is pushing the nav away from the top. So if I add this small piece of code, it removes the white bar.

h3 {
    margin-top: 0;
}

I chose to put this in the section of the responsive.css under the about page section where the CSS for your profile picture is. Hope this helps! :sparkles:

That's worked. Thanks! I'll remember to look for that next time.

You should provide your code so we can see where the problem might be. It sounds like you have extra margin or an incorrectly opened/closed div

Hello Shane,

Tried copying the code but format was weird.

See my workspace link below:

https://w.trhou.se/f67eh0og35