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 trialKyle Woolley
170 PointsAfter 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
1 Answer
edeharrison
Full Stack JavaScript Techdegree Student 11,127 PointsHi 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.
Ede
Stephen Holmes
2,439 PointsStephen Holmes
2,439 PointsAre you able to post your css please?