Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS How to Make a Website Styling Web Pages and Navigation Build Navigation with Unordered Lists

After following the directions, I still have a small white bar accross the top of the page.

Inspect element does not show anything with a margin to cause this, I am lost

Are you able to post your css please?

1 Answer

Hi Kyle,

You could add (if you haven't already) this code. It wipes the default margin and padding added to all elements -

* {
margin: 0;
padding: 0;
}

Be sure to put it at the top of your CSS. If you put it below other styles it might override styles that you later add and want to take effect.

There's a whole list of 'resets' here that some people choose to add to each project they do to get rid of default styles -

http://www.cssreset.com/

Hope that fixes it. If not, post your code and I'll be happy to have a look.

Ede