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

Removing white space at the top of the page

I am working on a personal website and even with margins set to 0, I get white space between the top bit of code and the absolute top of the website.

I've tried creating an id for the top headings and setting "margin-top: 0" but nothing, is there something I'm missing that can easily remove this white space?

I have colored the background green to show the problem easier.

https://w.trhou.se/hjhspk0txv

2 Answers

Mikkel Rasmussen
Mikkel Rasmussen
32,971 Points

add this to your css - its because of the normalize.css is set to display: block that causes the problem :)

section {
display: inline-block;
}

Thank you! Such a simple solution.