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

Bryant Feld
seal-mask
.a{fill-rule:evenodd;}techdegree
Bryant Feld
Full Stack JavaScript Techdegree Student 26,144 Points

css selectors, course glitch or am I missing something?

code challenge says "Create a selector that targets an img element if its title value begins with "product-". Set the border color to lightblue." my answer is 1 /* Complete the challenge by writing CSS below */ 2 img [title^="product-"] { 3 border-color: lightblue; 4 } response is Bummer! Are you setting border-color to 'lightblue'?

?WTF? am I missing something?

1 Answer

Hi Bryant,

CSS is really strict about spacing. It looks like there is a space between img and [title^="product-"], and there should not be a space there. Try taking it out and see if that helps. Otherwise, the code looks fine. Try this:

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

That should fix the issue.

Good luck! Leslie