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.

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!