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

HTML How to Make a Website Styling Web Pages and Navigation Style the Image Captions

Unable 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

fixed code formatting

1 Answer

Bryan Peters
Bryan Peters
11,996 Points

You are missing a semicolon between em and color.

#gallery li a p {
  margin: 0;
  padding: 5%;
  font-size: 0.75em;
  color: #bdc3c7;
}

changed from comment to answer

Thank you so much. It is both maddening and heartening that it was obvious. I am learning to be more careful.