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 trialNathan Begnaud
8,221 PointsStuck On Quiz
It keeps saying "Bummer! It looks like at least one side has no margin. Be sure you set all sides to zero margin."
My code is #gallery li { margin:0 0; padding: 0; } I've tried it all now i need help.
3 Answers
Becky Castle
15,294 PointsHi Nathan, You should be able to set the margin to zero on all sides by saying:
#gallery li {
margin:0;
}
But, of course, that will only set the margins on your gallery list items to zero. You may want to double-check which margins are to be adjusted.
Shane Meikle
13,188 PointsIf you are on part 2, then you are targeting the wrong part of the code.
#gallery {
margin: 0;
padding: 0;
list-style: none;
}
Try that. If that isn't the challenge you are on, please be more specific and I can help.
leanne mclaughlin
5,821 PointsIf it's just asking you to set the margins to zero it can either be:
#gallery li {
margin: 0;
}
OR
#gallery li {
margin: 0 0 0 0;
}
Padding is for the outside of the element (I'm not sure if it's already asked you to add padding, but just incase)
Nathan Begnaud
8,221 PointsNathan Begnaud
8,221 PointsThanks everyone for the reply, I forgot to put list-style: to none and that's why it wasn't working.