Here is the code I used. Am I putting the code in the wrong spot? Any help would be greatly appreciated. Thanks
@gotbassoon It’s better if you provide a link to the challenge and also paste the code you have so far between 2 sets of backticks.
```
https://forum.freecodecamp.com/t/forum-code-formatting/25574
The smaller image class that you’re creating (the .smaller-image {…}) is css, so it should be in between the style tags. Then the image should call that by having the class=“smaller-image” class in it.
Here is the code I used ```
.red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; }CatPhotoApp
<img src=“https://bit.ly/fcc-relaxing-cat” alt=“A cute orange cat lying on its back.” .smaller-image { width: 100px;
Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
```That really helped. Thanks so much!
You made a mistake in the code in the image part:
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back." .smaller-image { width: 100px;``>
Because you put the CSS style inside the HTML tag, you need to collocate in this way:
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.smaller-image {
width: 100px;
}
</style>
CatPhotoApp
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back." class="smaller-image">
thanks @Belegurth
thanks @Vicky01 .