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

I am trying to set padding to 0 on both sides but for some reason it it is coming back with only one side

I am using

gallery{

margin: 0;
padding: 0;
list-style: none;

}

3 Answers

David,

your css seems to be correct. Can you paste your entire css code here? The problem may be elsewhere in the code.

Hi David,

It looks like your selector is missing the hash-mark for selecting the element with an ID of gallery. It should look like this:

#gallery {
    margin: 0;
    padding: 0;
    list-style: none;
}

He already has that. When you enter a hashtag followed by text on these forums, you get a header like the one above. That line of code just didn't make it inside the code-box to have the # visible.

Thanks guys for some reason i exited out of the challenge and then went back in put in the same thing i had in before and it took it this time. Thank you for your help.