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

Challenge Task 2 - set margins to no padding

The challenge task asks for margin to have no padding (CSS). I have set it to:

gallery {

margin: 0;

}

Sorry, I'm sure this is a beginner error here!

4 Answers

Hi,

You need to put a . period before gallery if it's a class or an # if it's an ID. Also should put px after 0.

Sorry, I actually have a # before gallery, when I type it in here it doesn't come through! I did try px after the 0 too!

Got it to work, sorry! not even sure how I fixed it, just did it again and it was fine.

sweet! glad you got it to work. Do I get best answer? :)