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 trialCaspar Claessen
9,060 PointsNavigation bar is not changing
2 Questions:
There is still a white space above my header on the portfolio page. How can I fix this?
My navigation bar is not changing, after following the first steps of Nick. Who can help me? I do not know what is wrong with my code. Here's a snapshot of my workspace: https://w.trhou.se/qihf8odocj
Thanks in advance.
Caspar Claessen
1 Answer
Ryan Duggan
Courses Plus Student 5,591 PointsIf you float your unorganized gallery list to the left, it seems to fix the problem. When inspecting the element before any changes, there seemed to be a rouge element inline with your header, added with the #gallery margin(top) of 50px causing the gap.
#gallery {
margin: 50px 0;
padding: 0;
list-style: none;
**float:left;**
}
#gallery li {
**float: left;**
width: 45%;
margin: 2.5%;
background-color: #F5F5F5;
color: #BDC3C7;
}```
Caspar Claessen
9,060 PointsCaspar Claessen
9,060 PointsFixed it! Thanks for your help and time!