Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
PLUS
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!

Brandon,

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

Rich