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 remove space above the header?

How to remove space above the header? I set the color for the header and there is still white blank space above it. Here is the snapshot https://w.trhou.se/v16p182q47

1 Answer

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

It's probably the margining from one of the elements. Did you use a css reset file? If not, you can manually remove it yourself by setting the margin to zero on the body element. If that doesnt fix it, check the top margins for the header element and likely h1 elements or whatever you have nested in the header element.

Tip: if you open up chrome dev tools (google chrome) and inspect the elements, as you hover over them you will see an orange border around them, this indicates the margining set on elements.