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

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

Tiffany Lin
Tiffany Lin
1,086 Points

Why is the type for the first block different from the rest?

This only happened after I added the following to the code:

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

Am I missing something?

2 Answers

Ryan Field
PLUS
Ryan Field
Courses Plus Student 21,242 Points

If you're wondering why your CSS after that block is different, it's likely because you're missing a final semilcolon (;) after color: #bdc3c7.

If that's not what you're wondering, you can post all of your code so we can try and debug it further! :)

Raymond Osier
Raymond Osier
16,581 Points

can i see more of the code to see what your trying to explain . it looks like that this css tag is only tageting list items,anchors, and paragraphs in the gallery id so im going to take a guess without seeing your html or the rest of the css and say the text on the first block is different from the rest because either it is not being targeted with this block of code or it is being overwritten by this block of code