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 Selectors - Beyond the Basics Attribute Selectors Challenge

i don't know what's wrong?!!!!!!

Finally, write a new attribute selector that targets input elements with a type attribute value of submit. Then, set the background color to #52bab3. Bummer! Make sure you're setting the background color to '#52bab3'. Preview Get Help Recheck work style.css

index.html
1
img[title="avatar"] {
2
  border-radius: 50%;
3
}
4
ā€‹
5
input[type='password'] {
6
 color: #ccc ;
7
}
8
ā€‹
9
input[type='submit'] {
10
  background-color: '#52bab3';
11
}

3 Answers

Hi Shawn,

My code looks like:

img[title="avatar"] {
  border-radius: 50%;
}

input[type="password"] {
  color: #ccc;
}

input[type="submit"] {
  background-color: #52bab3;
}

You have single quotes round your hex colour - that might be it?

Steve.

thank you steve:)

No problem! :-)

Roberto Da Silva
Roberto Da Silva
4,213 Points

I'm having the same issue, no matter what I do it will still say the code is wrong ?!?!? =/

Can you post your code, Roberto?

Steve.

chello yana
chello yana
8,924 Points

why can't there be space between '=' and near keywords? my code was same yours but there was only space so it didn't work.

Roberto Da Silva
Roberto Da Silva
4,213 Points

hi steve, I have just copy/paste the code from shawn which was exactly the same and guess what ?! passed the test lol !

many thanks for your prompt response =)

Glad you got it fixed. :+1:

input[type="submit"] { background-color: #52bab3; }