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 trialUnsubscribed User
6,510 PointsAnother bummer! I just don't get what this is asking for!
Another bummer! I just don't get what this is asking for!
/* Complete the challenge by writing CSS below */
img[src^="product-"] {
border-color: lightblue;
}
2 Answers
Ben Singer
8,621 PointsYou're selecting the src attribute. It should be the title.
moter8
12,103 PointsI 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.
Ben Singer
8,621 PointsYou've got a space between 'img' and the attribute selector.
Edit: Hah! Beat me to it!