Give background color to a Div element

Give background color to a Div element
0

#1

I am doing everything right still, it's giving an error.

Your div element should have a silver background.



  .silver-background {
    background-color: silver;
  }
 
  
Things cats love:
  • cat nip
  • laser pointers
  • lasagna

Please Help.


#2

The code is not visible, use three backticks (```) before and after the code.
Next time when you need help, click “Ask for help” button in the challenge it will post the code and the link to the challenge.

Into your code,

Did you add the .silver-background class to your div element.


#3

Yes, I did everything. Still, it’s giving an error.


#4

Can you post the code ? or provide a screenshot


#5

I recently created another topic, please have a look at it.