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 Foundations Advanced Selectors UI Element States Pseudo-Classes

Something wrong with the Editor?

When i run this in my local browser through saved file it seems to work:

input[type="radio"]:checked + label{ color: blue;font-weight:bold;}

but it just wont work in the teamtreehouse editor

1 Answer

Matthew Underhill
Matthew Underhill
20,361 Points

I haven't tried the particular challenge but it seems your using an adjacent selector to target the label tag which follows that input tag. I have a feeling that the checked pseudo may be stopping the style from being applied. You say it works in the browser though so not sure.

What does the error say on the task?