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 trialMichael Thompson
1,273 Pointsadding css
how do you fix this? " It looks like at least one side has no margin. Be sure you set all sides to zero margin."
3 Answers
Matt Trask
10,027 Points{margin: 0;} or {margin-left: 0; margin-right: 0;}
Dennis Skoko
12,860 PointsWhat code have you tried with?
Michael Thompson
1,273 Pointsgallery { margin-left: 0; margin-right: 0; }
Dennis Skoko
12,860 PointsYour problem is that you didn't pput hashtag before gallery. To target an element with an ID you use "#" before the ID:s name
Like this:
#gallery {
margin: 0;
}
Christine Dawson
8,136 PointsTry this #gallery { margin:0; }