Size your Images,,

Tell us what’s happening:

Your code so far

  
 
   Am stuck here challenge 21 I can't pass it. What could be wrong? Please help.

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


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

<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Linux; Android 6.0; Hisense U989 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/size-your-images

You need to the .smaller-image class to the image tag.

How exactly?
I have tried everything but still failing since yesterday.

<img class="some-class-name" src="cat.png">

Alright, let me try it

Still failing , after putting that

Okay, so what do you have now?

You only need to add the .smaller-image class to the image the same way as the .red-text class was added to the paragraphs.

<style>
.smaller-image" {
   width:100px;
 }
</style>
<img class="smaller-image" src="cat.png">

This is where am at, and stuck.

I’ve edited your post for readability. When you enter a code block into the forum, remember to precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

markdown_Forums

You have to add the class to this image:

<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">