# \<img class="smaller-image"

**URL:** <https://forum.freecodecamp.org/t/img-class-smaller-image/484122>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [November 3, 2021, 4:17am UTC](https://forum.freecodecamp.org/t/img-class-smaller-image/484122 "2021-11-03T04:17:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamid1](https://avatars.discourse-cdn.com/v4/letter/h/9de0a6/32.png) [@Hamid1](https://forum.freecodecamp.org/u/Hamid1)\
**Post date:** [November 3, 2021, 4:17am UTC](https://forum.freecodecamp.org/t/img-class-smaller-image/484122/1 "2021-11-03T04:17:08Z")

</div>

Checked everything but cant find the mistake.  
it says:  
Your `img` element should have the class `smaller-image` .

anyone got a suggestion?

```
  **Your code so far**

```

```html

<img class="smaller-image" src="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css" />
<style> 
.smaller-image {
  width: 100px;
}

.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>

<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/95.0.4638.54 Safari/537.36`

**Challenge:** Size Your Images

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design/basic-css/size-your-images)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [November 3, 2021, 4:24am UTC](https://forum.freecodecamp.org/t/img-class-smaller-image/484122/2 "2021-11-03T04:24:22Z")

</div>

> [@Hamid1](#):
>
> ```auto
> <img class="smaller-image" src="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css" />
> 
> ```

I’m not sure where this extra image element come from.

> [@Hamid1](#):
>
> ```auto
> <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>
> 
> ```

You need to modify the existing element.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [May 4, 2022, 4:24pm UTC](https://forum.freecodecamp.org/t/img-class-smaller-image/484122/3 "2022-05-04T16:24:49Z")

</div>

Closed on May 4, 2022, 4:24pm UTC

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