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

Brian Flieck
Brian Flieck
1,060 Points

Select the element with the ID gallery. Then, remove the margin, padding, and bullet points.

i keep adding this, and even went back to the video, what am i doing wrong?

#gallary {
margin:0;
padding:0;
list-style:none;
}
Stone Preston
Stone Preston
42,016 Points

Ive formatted your code for you so it shows up in the forum correctly. see this post for detailed instructions on code formatting. Or you can watch the tips for asking questions video on the right side of the page

YASH NAIR
YASH NAIR
3,463 Points

the spelling of gallery is wrong it is gallery not gallary

8 Answers

It's confusing that you have to put the code on top in order for it to pass

Stone Preston
Stone Preston
42,016 Points
#gallary {

you misspelled gallery. try using

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

Hay Brian,

If what you've put here is exactly what you're using then to select an ID you need a specific symbol at the start of the ID name in your stylesheet.

Didn't want to just give you the answer, but if your still stuck let me know. Oh, check your spelling too :)

Stone Preston
Stone Preston
42,016 Points

he put it there, he just didnt format his code so it doesnt show up in the forum.

Ohhhh....sorry, took too long to reply anyway. I'll go back to sleep :)

gallery {

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

it's gallery not gallary ..... the wrong letter cancelled the effect of the ID

try this, #gallary{ margin:0; padding:0; list-style:none; }

Fabio Souza
Fabio Souza
6,946 Points

It's easy, below your img classes create a new class ;

gallery {

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

}

stephenallison
stephenallison
8,559 Points

The key is to make sure you include all gallery's. # give you this option.

Irfan Setiadi
PLUS
Irfan Setiadi
Courses Plus Student 2,638 Points
#gallery {
  margin : 0;
  padding : 0;
  list-style : none; 
}