# Help, I can't figure out my coding problem

**URL:** <https://forum.freecodecamp.org/t/help-i-cant-figure-out-my-coding-problem/482700>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [October 22, 2021, 12:25am UTC](https://forum.freecodecamp.org/t/help-i-cant-figure-out-my-coding-problem/482700 "2021-10-22T00:25:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LilCoder](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@LilCoder](https://forum.freecodecamp.org/u/LilCoder)\
**Post date:** [October 22, 2021, 12:25am UTC](https://forum.freecodecamp.org/t/help-i-cant-figure-out-my-coding-problem/482700/1 "2021-10-22T00:25:55Z")

</div>

**Tell us what’s happening:**  
Describe your issue in detail here.

```
  **Your code so far**

```

```html

<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;
}
.smaller-image {
  height: 100px;
}
</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/94.0.4606.81 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:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [October 22, 2021, 12:31am UTC](https://forum.freecodecamp.org/t/help-i-cant-figure-out-my-coding-problem/482700/2 "2021-10-22T00:31:16Z")

</div>

Your first failing test:

> Your `img` element should have the class `smaller-image` .

and this is the relevant code:

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

```

I don’t see where the class was added in there.

You’re other failing test:

> Your image should be 100 pixels wide.

will still fail after you fix that. This is the relevant code:

```auto
.smaller-image {
  height: 100px;
}

```

Reread the instructions or the failing test and see if that is doing what is requested.

When I fix those two issues, your code passes for me.

---

<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:** [April 22, 2022, 12:31pm UTC](https://forum.freecodecamp.org/t/help-i-cant-figure-out-my-coding-problem/482700/3 "2022-04-22T12:31:24Z")

</div>

Closed on April 22, 2022, 12:31pm UTC

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