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

Tell us what’s happening:

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

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 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

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

Link to the challenge:

This is the second time you post and you have edited the default code which prevent us to be able to help you.

Refer below to edit your raw code and don’t edit anything inside the code next time

Hi everyone!

please can anyone help me out? am getting confused…

here is my code:

span[class="sr-only"]{
  border: 0;
}

I don’t think am wrong here, but don’t know why I can’t pass it?

Hi,

You are very close to the solution! The challenge is to select any span element whose class includes sr-only.

Here’s a hint on attribute selectors to point you in the right direction…

[attr] – this will select all elements with the attribute attr

[attr=val] – this will select all elements with the attribute attr but only if attr value is val

[attr~=val] – this will select all elements with the attribute attr but only if the value ‘val’ is one of a space separated list of values for attr

Hope this helps and let me know if you need another hint.
Happy coding :slight_smile:

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