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 trialDaniel Silva
5,353 PointsWhite 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.
2 Answers
Brendon Butler
4,254 PointsUsing 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
Full Stack JavaScript Techdegree Student 11,638 PointsHey 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 .
.navbar{
margin-bottom: 0;
}
Hope it helps :)
Andrew Hinkson
Full Stack JavaScript Techdegree Graduate 25,822 PointsAndrew Hinkson
Full Stack JavaScript Techdegree Graduate 25,822 PointsThe page you linked is not working. I think I maybe able to help but I just need to see the code.