Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 43 -

I am unable to get pass step 43 on building a balance sheet on the NEW responsive web design course.

Here is my code:

#years span[class] {
font-weight: bold;
width: 4.5rem;
text-align: right;
}

Here is my error message:

Test

Sorry, your code does not pass. Don’t give up.

Hint

You should have a #years span[class] selector.

Please help me with this. I am extremely confused because i copied and paste the selector but it still wont pass.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 43

Link to the challenge:

This selectors means style a html element that has an id of years and is a span tag with an attribute of class.
You can see its not very meaningful.
Here is a link to a css selector guide:
CHAINING CSS SELECTORS. Recently, I made a blog post about CSS… | by Derya Tanriverdi | Medium

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.