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.


Daniel Silva
Daniel Silva
5,353 Points

White space between nav and header.

If you see my site/code here https://danielsilvaportfolio.000webhostapp.com/# you'll notice there is a white gap between the navbar and header. I've tried setting the header/jumbotron top margin to 0 as well as the navbar margin bottom to 0 but not seeing results.

The page you linked is not working. I think I maybe able to help but I just need to see the code.

2 Answers

Brendon Butler
Brendon Butler
4,254 Points

Using Chrome on Windows I'm seeing the opposite effect. It looks like it's missing some spacing at the top, probably due to the margin of 0. Here is a screenshot of your page from my point of view.

I would try to hard refresh or bypass your cache if you haven't already. I do like that you're using normalize.css though!

Aakash Srivastav
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,626 Points

Hey Daniel Silva , I inspect your code and what I am seeing is , there is a margin-bottom:20px property has been set to your nav element with class navbar navbar-inverse. So , remove it and you will get your desired effect .

margin-bottom: 0;

Hope it helps :)