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

border-color wrong?

I'm fairly sure that I'm doing everything right but it still isnt accepting the answer. I've tried adjusting my spacing (plus/minus) and I keep getting the same error. Other people have posted this question before and have come out with the same answer on two different forum questions but it doesnt want to take this answer. Any help would be great!

Create a selector that targets an img element if its title value begins with "product-". Set the border color to lightblue. Bummer! Are you setting border-color to 'lightblue'? style.css

1 /* Complete the challenge by writing CSS below */ 2 .img[title^="product-"] { 3 border-color:lightblue; 4 }

1 Answer

Is there a "." before your img rule? if that's so ...please remove it and try again! Another thing you may try its copy&paste the word "lightblue" from the question and paste it to your css

You should write something like this and it should work:

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