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
Hirofumi Doi
Courses Plus Student 2,236 PointsBe sure ro set the color for gallery list items to a color of your choosing.
#gallery li {
float:left;
width:45%;
margin:2.5%;
font:yellow;
background-color:blue;
}
Add a margin of 2.5% to the gallery list items. Then, set the text color and background to colors of your choosing.
I can't pass even this code
2 Answers
Tom Bedford
15,645 PointsHi Hirofumi, the problem looks like it's with your font color.
As an example this code sets paragraph text to be blue:
p {
color: blue;
}
I have used the color property rather than font.
Hirofumi Doi
Courses Plus Student 2,236 PointsThanks a lot!
MUZ140993 Angelinah Chiwonerwa
5,907 Pointsi tried that also but its not working
Hirofumi Doi
Courses Plus Student 2,236 PointsHirofumi Doi
Courses Plus Student 2,236 Pointsro βγto