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

HTML How to Make a Website Responsive Web Design and Testing Adjust the Profile Page and Header

Caspar Claessen
Caspar Claessen
9,060 Points

Navigation bar is not changing

2 Questions:

  1. There is still a white space above my header on the portfolio page. How can I fix this?

  2. 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

If 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
Caspar Claessen
9,060 Points

Fixed it! Thanks for your help and time!