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

Tell us what’s happening:
I’m not sure as to why this isn’t working so any guidance/hints would be greatly received. Have have seen that -webkit-clip-path has been mentioned as a solution but I haven’t come across this before nor been asked to add it. I have tried it but my code still didn’t work. Really not sure what I’m doing wrong. Thanks
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.

span [class~="sr-only"] {
  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;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

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

Link to the challenge:

CRACKED IT!! it was the space between my span [class~=“sr-only”] selector header. :grinning:

1 Like

Keep up the good progress!

I certainly will. :grin: really enjoying the course. Thanks for your reply. All the best.

1 Like

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