Something wrong with my code what?

What is not right?
I am at css section. Inside style I have several classes. This is one of them.
.thick-green-border {
And the html
<img class="smaller-image"class=“thick-green-border” src=“” alt=“A cute orange cat lying on its back.”>

It is not working why?

From the lesson;
<img class="class1 class2">

Recheck how you implemented it.

1 Like

Hi @Elinneea

the problem is in the HTML you have img class="smaller-image"class=“thick-green-border”
when declaring multiple classes for one element you want to have all of them within the same class declaration with a space between the class names ie.
class=“class-1 class-2 class-3”

that is also why you can’t have spaces within a class name because:
class=“thick green border” would be interpreted by the browser as three separate classes.

Hope this helps.

I do not understand I tried also to write it like and is not working?How should it look like??

I wrote it like this:

<img class=“smaller-image thick-green-border” src=“” alt=“A cute orange cat lying on its back.”>

with your css and it works fine in my test.

btw you can style your border in one line like this { border: solid 10px green}

make sure to correct your html spoiler below

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

  h2 {
    font-family: Lobster, monospace;

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

  .smaller-image {
    width: 100px;
    border-color: green;
    border-width: 10px;
    border-style: solid;

<h2 class="red-text">CatPhotoApp</h2>
  <p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>
  <a href="#"><img class="smaller-image thick-green-border" 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="/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>
1 Like

@VictorOmondi1997 since this is a lesson the OP is working on we try and give them hints to guide them in the right direction rather than just posting in the solution.
Hope you understand.

Yes I wrote like this also and it is not working.:no_mouth:

If you have still issues post again your current code