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

Tell us what’s happening:

I’m not having an issue completing this task, I just don’t really understand why I would do it. Can anyone explain the reasoning behind it?

Thanks

Your code so far

span[class~="sr-only"] {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
  padding: 0;
  margin: -1px
}

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

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

Hey @GavinReid !
Your code passes when I test it. Can you reset the lessons and run the same code again?

1 Like

Hello @GavinReid !

I believe this code is directed for screen readers only so it does not affect the rest of the code for the page.

I may be wrong; but that is my guess on it.

Happy coding!

1 Like

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