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

CSS How to Make a Website Styling Web Pages and Navigation Make a CSS Image Gallery

I feel like I am right but it keeps saying I am wrong.

I don't know what the problem is here I was supposed to add a margin of 2.5%. Then set the background and text-color to a color of my choice. Anybody got a hint? Thank you in advance.

css/main.css
a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1, h2 {
  color: #fff;
}

nav a {
  color: #fff;
}

nav a:hover {
  color: #32673f;
}

h1 {
  font-family: Changa One, sans-serif;
  font-size: 1.75em;
  font-weight: normal;
}

img{
  max-width:100%;
}

#gallery{
  list-style:none;
  margin:0;
  padding:0;
}

#gallery li{
  float:left;
  max-width:45%;
  margin:2.5%;
  background:#ccc;
}

#gallery li a p{
  color:#000;
}

3 Answers

Alexander Costa
Alexander Costa
11,464 Points

Try adding color:#000 to just the "#gallery li" worked for me when I did this.

Ariel Aronica
Ariel Aronica
6,646 Points

Under h1 the font-family has something funny going on. Not sure if it makes a difference for the problem you are having but that should be in quotation marks.

Thank you Alexander Costa, that worked. Ariel, I don't know what the deal with that is. That was in the code before I got a hold of it.