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

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 (Linux; Android 10; Infinix X612) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.181 Mobile Safari/537.36

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

Link to the challenge:

Please help me to correct m’y code for this step
span[class~=“sr-only”] {
-webkit-clip-path:inset(50%)!important;
border: 0!important;
clip: rect(1px, 1px, 1px, 1px)!important;
clip-path :inset(50%)!important;
height: 1px!important;
width: 1px!important;
position: absolute!important;
overflow: hidden!important;
white-space: nowrap!important;
padding: 0!important;
margin: -1px!important;
}

Make sure you have a space before !important.

1 Like

Hello!
I do or👇

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

after checking👇
Test
Sorry, your code does not pass. Keep trying.

Hint
Your span[class~=“sr-only”] selector should have the -webkit-clip-path property set to inset(50%) !important

Please format your code like this

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Please reset the code as I noticed you have modified the order of the properties?
Try to add the requested word without changing anything else.