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

Background color...

What is wrong with this? Keeps telling me to make sure i set a background colour of my choosing for the list items which i have done....

#gallery li { float: left; max-width: 45%; margin: 2.5%; background-color: #c2c2c2; color: #000000; }

2 Answers

Brandon Fallin
Brandon Fallin
Courses Plus Student 4,055 Points

Have faith there is nothing wrong with your code. I went back through and found out that the challenge won't accept "#000000" as the font color, because it asks for a color of "your choosing" and "#000000" is the initial color value for text. Happy Coding!


Thanks, was pulling my hair out with it passed that now :)