Size image in css

Tell us what’s happening:

i need help,im having problem with the width:100px may i know where the issue is?

Your code so far

u<link href="" rel="stylesheet" type="text/css">
.red-text {
  color: red;

h2 {
  font-family: Lobster, monospace;

p {
  font-size: 16px;

.smaller-image { width: 100px; } .red-text {color: red;}

  font-family: monospace;


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

<a href="#"><img src="".alt="A cute orange cat lying on its back."class="smaller-image"></a>

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

<form action="/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>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/71.0.3578.141 Safari/534.24 XiaoMi/MiuiBrowser/11.4.3-g.

Challenge: Size Your Images

Link to the challenge:

your css has various syntax errors
there are missing graph parenthesis

check your p selector
and you have a rule outside of any selector, the font-family: monospace one, it can’t be there, it was inside something and you need to put inside that selector again or delete it

the selector for class .red-text is present twice, delete one of those

there is also a random u on the first line of code that shouldn’t be there

you may need to reset your code
remember that you just need to do this:

Create a class called smaller-image and use it to resize the image so that it’s only 100 pixels wide.

…ok i will check it right away…


.red-text {
color: red;

h2 {
font-family: Lobster, monospace;

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

.smaller-image {
width: 100px;

This is the CSS that might help you.