Freecodecamp: Simple css issue .thick-green-border class not going through. What am I doing wrong?

Created on 1 Jul 2016  ·  3Comments  ·  Source: freeCodeCamp/freeCodeCamp

Challenge Add Borders Around your Elements has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<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-width: 10px;
    border-style: solid;
    border-color: green;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image" class="thick-green-border"  src="https://bit.ly/fcc-relaxing-cat">

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

Most helpful comment

Your image tag shouldn't not have two class attributes. In fact, no html element should have two class attributes.
You add multiple classes to a html element by separating them by spaces. For example,

<h2 class="red-text green-border">Heading</h2>

And this space is not for asking help with challenges. Head over to FCC helproom if you need help.

All 3 comments

Your image tag shouldn't not have two class attributes. In fact, no html element should have two class attributes.
You add multiple classes to a html element by separating them by spaces. For example,

<h2 class="red-text green-border">Heading</h2>

And this space is not for asking help with challenges. Head over to FCC helproom if you need help.

I knew it was going to be something simple. Thanks a lot arun1595.

Closing as it seems the issue has been resolved. Happy coding!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ar5had picture ar5had  ·  3Comments

Tzahile picture Tzahile  ·  3Comments

itsmikewest picture itsmikewest  ·  3Comments

SaintPeter picture SaintPeter  ·  3Comments

jurijuri picture jurijuri  ·  3Comments