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 Build Navigation with Unordered Lists

Alfonso Rodriguez
Alfonso Rodriguez
4,206 Points

Still have the line on top of the header

I believe I have followed all the steps correctly but it appears I have made an error due to the small white line that appears above the header. Could I send you me css code so any of you could help me how the fix this? Besides that, the course has been great and I have learned a great deal. Thanks and have a good day!

You can post the code here so we can help you. Read the Markdown Cheatsheet to know how to do it.

3 Answers

Hard to say without seeing your code, but try this:

body{
    margin: 0;
}
Luka Akul
Luka Akul
11,481 Points

If you have heading tags (h1,h2,h3..) in your header, try to put heading margin to 0.

header h1 {
margin: 0;
}
T眉nde Mat贸cza
T眉nde Mat贸cza
11,194 Points

Try to debug using a webbrowser: Right click on the white line and select Inspect element. By inspecting the element you will see where the white line belongs to. The issue must be that one of your adjacent elements has extra margin.