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 trialNathan Winkelmes
1,352 Pointsbackground color
why isn't the background color correct?
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
nav a {
color: #fff;
}
nav a:hover {
color: #32673f;
}
h1 {
font-family: βChanga Oneβ, sans-serif;
font-size: 1.75em;
font-weight: normal;
}
img{
max-width:100%;
}
#gallery{
margin:0;
padding:0;
list-style-type:none;
}
#gallery li{
float:left;
width:45%;
margin:2.5%;
color:#000;
background-color:#fff;
}
3 Answers
rydavim
18,814 PointsWelcome to Treehouse!
Sorry, this challenge doesn't seem to like shades of grey. If you pick a colorful color (or any non-grey value) it should pass. There isn't anything wrong with your code.
Jason Anders
Treehouse Moderator 145,860 PointsI don't know why the challenge is picky with this one. I think it may be because the background displays as white by default and fonts are black by default, so you're really not "setting" a color when you pick white (#fff) and black (#000). Just change those 2 colors to anything else and it will pass you.
Jason :)
Mindy Sandilands
15,743 PointsHi Nathan, It looks like your question may have been answered. The issue does seem that the text-color can not be black. I made it white (color: white) and the challenge passed so I agree with the above answers that this is something within this challenge and in the real world you can set the text to black as you did in the challenge (color: #000). The background color worked fine for me set to white (background-color: #fff)