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

CSS How to Make a Website Styling Web Pages and Navigation Polish the Navigation and Footer

Caroline Jin
Caroline Jin
970 Points

The gap on the top is still there

Wanted to delete the gap on the top as video instructed, but the gap on top of the header stayed the same.

HTML { float: left; margin: 0 0 30px 0; padding:5px 0 0 0; width:100%; }

Jonell Alvi
Jonell Alvi
4,259 Points

Hi Caroline,

You have 5px of padding on top there, perhaps that is what is causing the gap?

Or perhaps you should check the styles on the header element?

~Jonell

1 Answer

Hard to say without seeing all the code, but it could just be the 5px padding like Jonell said.