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

Henry Tou
Henry Tou
3,886 Points

Code Challenge issue - substring matching attribute selectos

Um im not sure what im doing wrong here the "$" seems to be in the right place but the error states that i dont have text-decoration set to none?!?! I dont get it.

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

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

a[href$=".html"] {
  text-decoration: none; 
  {

2 Answers

Hi Henry,

You are having the error because you are using opening angle brackets in place of closing angle brackets:

/* Complete the challenge by writing CSS below */

img[title^="product-"] {
  border-color: lightblue;
  {  //You are using opening angle brackets here instead of closing '}'

a[href$=".html"] {
  text-decoration: none; 
  { //same here

Modify your code like this and it should work fine:

/* Complete the challenge by writing CSS below */

img[title^="product-"] {
  border-color: lightblue;
  } //change this to a closing angle bracket 

a[href$=".html"] {
  text-decoration: none; 
  } //change this to a closing angle bracket

Cheers!

You are most definitely welcome Henry!

Go get a cup of coffee and enjoy your coding :).

Henry Tou
Henry Tou
3,886 Points

Sigh... i think i need a break, such an obvious miss. Thank you Andrews, i was pulling my hair out with this one.