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 {
border-color:green;
border-width:10px;
border-style:solid;
}
And the html
<img class="smaller-image"class=“thick-green-border” src=“https://bit.ly/fcc-relaxing-cat” 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=“https://bit.ly/fcc-relaxing-cat” 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="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 {
    width: 100px;
  }
  .thick-green-border{
    border-color: green;
    border-width: 10px;
    border-style: solid;
  }
</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 class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" 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="/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>
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