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 trialNicole Wolcott
897 PointsUnable to change the color for a <p> link to light grey. I re-checked the syntax and code specifics to no avail.
Below is the code I used in main css.
#gallery li a p {
margin: 0;
padding: 5%;
font-size: 0.75em
color: #bdc3c7;
}
I also made sure that this "link color" was in the proper cascading position. I even moved this code around to see if it was over riding, but it isn't.
/* links */
a {
color: #6aa47c;
}
I am sure it is obvious, I welcome someone pointing out the obvious. Thank you
1 Answer
Bryan Peters
11,996 PointsYou are missing a semicolon between em and color.
#gallery li a p {
margin: 0;
padding: 5%;
font-size: 0.75em;
color: #bdc3c7;
}
Jason Anello
Courses Plus Student 94,610 Pointschanged from comment to answer
Nicole Wolcott
897 PointsThank you so much. It is both maddening and heartening that it was obvious. I am learning to be more careful.
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 Pointsfixed code formatting