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
Sophia He
2,554 PointsIf we can't see the color in the #gallery, why do we still have to define a color after background- color?
In the #Gallery, there are background color which is set to be #f5f5f5, and there is another color which is #bdc3c7. Apparently we will not able to see the color because the contents are linked. But why do we still have to set it up if we can't see it? and if the contents are not link, does it mean the property Color refer to the color of the text?
4 Answers
Simon Duchaine
14,441 PointsHello Sophia,
We define a backround color in case if your content would not be available (broken) or your browser not compatible. In that case, the user would see something that fits in your global page design.
Vedran Brnjetić
6,004 Pointscolor is the color of text that would be in the container
background-color is the background color of the container
Sophia He
2,554 PointsThanks Simon. But what is the difference between a color and background color in the container?
Sophia He
2,554 Pointsthanks everyone!