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 CSS Selectors Going Further with Attribute Selectors and Pseudo-Classes Substring Matching Attribute Selectors Challenge

Another bummer! I just don't get what this is asking for!

Another bummer! I just don't get what this is asking for!

style.css
/* Complete the challenge by writing CSS below */

img[src^="product-"] {
  border-color: lightblue;
}

2 Answers

You're selecting the src attribute. It should be the title.

I seem to get " Bummer! Are you setting border-color to 'lightblue'?" while selecting the title attribute:

/* Complete the challenge by writing CSS below */

img [title^="product-"] {
 border-color: lightblue;
}

Edit: Nevermind, just figured it out. There shouldn't be a whitespace between img and the selector. Somehow it DID pass the first "test" though as in if "img [title^="product-"]" was correct.

You've got a space between 'img' and the attribute selector.

Edit: Hah! Beat me to it!