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

Can't Complete Challenges

Intermittent issues using Firefox or chrome with code challenges in the UI Element States Pseudo Selector section of the CSS course.

I am asked to add a font weight of "bold". So I type;

{ font-weight: bold; }

Then I receive an error ". Make sure you set font-weight to 'bold'."

Sometimes if I refresh the page, close the browser and reopen, or switch browsers the problem goes away, with no changes to my answers (which I am testing along side the browser)

Is anyone else running into this issue?

James Barnett
James Barnett
39,199 Points

Can you update your original post with all of your CSS you using in this code challenge so we can see the bigger picture.

3 Answers

Raymond Yuen
Raymond Yuen
7,291 Points

that on its own won't do anything because you are missing the selector. it should look like this:

[thing you are targeting] { font-weight: bold; ]

Yes, sorry. This has happened to many different questions throughout the various code challenges. I am definitely including the proper css (unless I've lost my mind@!). Here's the example of what is/was failing in code check;

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

Then I receive an error ". Make sure you set font-weight to 'bold'."

Hi Scott,

I believe the code challenge is also asking for a font color. Sometimes the error messages aren't that accurate.

Jeff