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

Adrian Mindak
PLUS
Adrian Mindak
Courses Plus Student 10,877 Points

Code challenge for Attribute-classes: What am I missing?

...the code is always failing.

style.css
/* Complete the challenge by writing CSS below */
img[titleˆ="product-"] {
  border-color: lightblue;
}

2 Answers

From what I can tell it appears your upward carrot " ^ " (I don't know what it's called) is for some reason not the correct symbol. Make sure you use "shift-6" on your keyboard for the correct symbol. The below code has the correct symbol and passes the challenge.

img[title^="product-"] {
  border-color: lightblue;
}
Adrian Mindak
Adrian Mindak
Courses Plus Student 10,877 Points

Yes, I thought so too. But I looked it up and yes I am using shift-6. It is totally strange. But you are right my symbol looks different from yours. Are there any more carrot-characters on the keyboard. or is the US carrot not the same as the British one ;).

Adrian Mindak
Adrian Mindak
Courses Plus Student 10,877 Points

When I copy and paste your code - the challenge is working :D.

Adrian Mindak
Adrian Mindak
Courses Plus Student 10,877 Points

OOHhh I just figured that if I type shift-6 and then add a Space to continue typing, the Carrot looks and works just like it should. Otherwise, if I just continue "='value or something'" it does not work and the carrot stays as strange as it is right now.

Is this a normal behavior? I am from Germany and brought my MacBook with an International-English keyboard ...soo maybe that's why?

I'm glad it worked. I would imagine it has something to do either with it being a Mac or the international keyboard. I don't have very much experience with Macs but I understand their typing and keyboards work slightly different from a Windows platform.