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

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 -


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