Basic CSS: Use an id Attribute to style an element. Can someone help me figure out my mistake

Basic CSS: Use an id Attribute to style an element. Can someone help me figure out my mistake
0

#1
.red-text { color: red; }

h2 {
font-family: Lobster, monospace;
}

p {
font-size: 16px;
font-family: monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}

.silver-background {
background-color: silver;
}

#cat-photo-element {
background-color: green;
}

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
Indoor Outdoor
Loving Lazy Energetic
Submit

#2

Please post a link to the challenge. I don’t know what the html is.


#3

heres the link

https://learn.freecodecamp.org/responsive-web-design/basic-css/use-an-id-attribute-to-style-an-element


#4

Thanks. What about your html code?

You need to wrap it the code in ``` on both sides. Otherwise, I won’t be able to see the code.


#5

Well, I’m going to take a blind guess while I wait for your html code.

My guess is that

#cat-photo-element {
background-color: green;
}

Is not the correct id name for the form tag. Double check that.