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

Deep Dive More Pseudo-classes

HI, there.

I´m takig a challenge and don´t know what I´m doing wrong. Perhaps you can help me. The Task says: The 'Phone' field in this form has been disabled in the HTML file. Create a new rule that selects the disabled field only, then set its background color to lightgray.

And I wrote this:

/* Write your CSS code below */

:root { background-color: #BDD4DE; }

:target { background-color: #EA2E49; }

:disabled { background-color: #CCC; }

3 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Pia,

You'll need to use the predefined keyword instead of the hex value.

That was my mistake. That you very much.