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 trialcassandram518
1,259 PointsChallenge 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
Mario Mitchell
18,789 PointsHi,
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.
cassandram518
1,259 PointsSorry, 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!
cassandram518
1,259 PointsGot it to work, sorry! not even sure how I fixed it, just did it again and it was fine.
Mario Mitchell
18,789 Pointssweet! glad you got it to work. Do I get best answer? :)