Its about imaging with classes in css

  **Your code so far**

<link href="" rel="stylesheet" type="text/css">

.red-text {
  color: red;

h2 {
  font-family: Lobster, monospace;
.smaller-image {
width: 100px;
p {
  font-size: 16px;
  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."></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="">
  <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/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36

Challenge: Size Your Images

Link to the challenge:

i have Created a class called smaller-image and use it to resize the image so that it’s only 100 pixels wide.
and still its not marking me correct at any given point
the class is greated like so
.smaller-image {
width: 100px;
what am i not doning?

Hi @kelar !

Welcome to the forum!

Right now you have only done have the challenge.
Adding this class to your style tags is only have the challenge.

The other part of the challenge is to reference that class in your html.
You learned about how to add classes to html elements in this lesson.

Review that lesson and apply the class of smaller-image to the img element.

Hope that helps!

If you are still having some problems, this is the portion of the tutorial that Jessica suggested that you review:

If you are still having difficulties after reviewing this lesson, go ahead and let us know, and someone will help you through.


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