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 Styling Web Pages and Navigation Make a CSS Image Gallery

Can't find my mistake -- or the test is flawed.

The test is asking me to: Select the element with the ID gallery. Then, remove the margin, padding, and bullet points.

I first started with

gallery {

margin: 0; padding: 0; list-style: none; }

but it said "Bummer!" and told me to add a li for list.

I did that.

Now it saying that atleast one side has no margin. Be sure to set all sides to zero margin.

From what I was taught in the video that is not necessary. Regardless, I added

gallery li {

margin: 0 0; padding: 0; list-style: none; }

and its giving me the same problem.

Please help ! I'd like to move forward !

Also if they are only asking for the element with the ID of gallery, why do I need to be more specific with lists.

Thanks.

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 li {
  margin: 0;
  padding: 0;
  list-syle: none;
}

3 Answers

That must have been the issue ! I didn't see that earlier !

Thanks Kristopher!!

Glad the issue was on my end rather than Treehouse : )

Kristopher Van Sant
Kristopher Van Sant
Courses Plus Student 18,830 Points

No problem! Yup, it's always the smallest of things, rarely is it an issue with test itself. Keep up the awesome work! And remember to always pay attention to the tiniest of details :)

Well I refreshed the test stuck with

gallery {

margin: 0; padding: 0; list-style: none; }

and it worked..

Sorry about that !

Grove Software
Grove Software
1,508 Points

I just got it to work with

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