I've got an issue here. My code is not working with sizing an image. Anyone could help please

Tell us what’s happening:
I am trying to type the code as described but the problem remains unanswered. I just don’t know what’s happening. If am misplacing size image code or something else, I don’t know so far.

  **Your code so far**

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
  color: red;
}

h2 {
  font-family: Lobster, monospace;
}

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

</style>

<h2 class="red-text">CatPhotoApp</h2>
<main>
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>

}
[spoiller]

<style>
.smaller-image{
  width:100px;

}
</style>
[/spoiller]

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>

<div>
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
</div>

<form action="https://freecatphotoapp.com/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Energetic</label><br>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
</main>
  **Your browser information:**

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

Challenge: Size Your Images

Link to the challenge:

Hi @Semana_Didier !

Welcome to the forum!

It looks like you have a few issues so I would reset the lesson.

The first thing you need to do is create a class of smaller-image and add that to the img element.

I don’t see that in your code.

Secondly, inside your style tags you need to resize the image so that it’s only 100 pixels wide.

  p {
    font-size: 16px;
    font-family: monospace;
  }
ADD CODE HERE
</style>

Make sure not to create an extra set of style tags.
This is incorrect.

Use the style tags they already gave you.

Hope that helps!

Thanks @jwilkins.oboe to welcome me to the forum. Anyway, I never knew it was mistake to create another style tag. I am thankful for your support. Let me try it and see if it works.

Hello @jwilkins.oboe!

I’d like to thank you very much. With your support I made it. I am moving to the next challenge.

1 Like