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

What am I doing wrong?

Working in the "Make a Website" track, and I'm on code challenge 1, Make a CSS Image Gallery.

I'm on step 2, where I have to select the element with the id "gallery" and set the margin and padding to 0, and the list style to none.

I have typed out

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

However it always that only one side has no margin.

What am I doing wrong?

3 Answers

Clinton Hopgood
Clinton Hopgood
7,825 Points

check that the CSS is cascading in the correct order.

Weird. It's working this morning, the exact same code. I guess I just needed to log out and log back in. Thanks for your help any way!

jase richards
jase richards
10,379 Points

Is any of the styling being applied? Like is the list-style being removed?

Also is your html correct is it id="gallery"

Stephan Kuster
Stephan Kuster
7,168 Points

The code is correct, I have tested it by copy and pasting your code in the challenge and I have passed it. Could you post the complete code of that file?

Stephan,

Thank you for your answer. I tried it again this morning so I could paste the code here for you, but it worked this time. I guess it was just a bug.