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

adding 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
Matt Trask
10,027 Points

{margin: 0;} or {margin-left: 0; margin-right: 0;}

Dennis Skoko
Dennis Skoko
12,860 Points

What code have you tried with?

gallery { margin-left: 0; margin-right: 0; }

Dennis Skoko
Dennis Skoko
12,860 Points

Your 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;
}

Try this #gallery { margin:0; }