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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

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

Link to the challenge:

Welcome there.

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

Hey so I am stuck at step 46
my code :

span[class~="sr-only"] {
  border: 0 !important ; 
  clip: rect(1px, 1px, 1px, 1px) !important ;
  clip-path: inset(50%) !important ; 
  -webkit-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 ; 
}

html {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  color: #0a0a23;
}

h1 {
  max-width: 37.25rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

h1 .flex {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}

h1 .flex span:first-of-type {
  font-size: 0.7em;
}

h1 .flex span:last-of-type {
  font-size: 1.2em;
}

section {
  max-width: 40rem;
  margin: 0 auto;
  border: 2px solid #d0d0d5;
}

#years {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  background: #0a0a23;
  color: #fff;
  z-index: 999;
  padding: 0.5rem calc(1.25rem + 2px) 0.5rem 0;
  margin: 0 -2px;
}

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

.table-wrap {
  padding: 0 0.75rem 1.5rem 0.75rem;
}

span:not(.sr-only) {
  font-weight: normal;
}

error :

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.

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 (').

I tried to find something wrong with your code, but there doesn’t seem to be anything, so it must be the test. However I was able to pass the test by restarting the step, then carefully copying the " !important;" into each line.
So I would suggest trying that. (Don’t type, just create the text once and copy it in)

I tried that and it doesn’t work

Hey I’m having the same issue you did regarding the !important property. How did you fix it

If you have a question about a specific challenge as it relates to your written code for that challenge, and you’ve tried to solve it at least 3 times so far and still need some help, just click the Ask for Help button located on the challenge (it looks like a question mark).
This button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

I did that haven’t gotten a response