# Add Borders Around your Elements challenge

**URL:** <https://forum.freecodecamp.org/t/add-borders-around-your-elements-challenge/143146>\
**Category:** General\
**Created:** [August 22, 2017, 11:07am UTC](https://forum.freecodecamp.org/t/add-borders-around-your-elements-challenge/143146 "2017-08-22T11:07:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dipupo](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@Dipupo](https://forum.freecodecamp.org/u/Dipupo)\
**Post date:** [August 22, 2017, 11:07am UTC](https://forum.freecodecamp.org/t/add-borders-around-your-elements-challenge/143146/1 "2017-08-22T11:07:25Z")

</div>

**Tell us what’s happening:**

**Your code so far**

```auto
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  } .thick-green-border {border-color: green;
                         border-width: 10px;
                         border-style: solid;}

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>
<img class= "class1 class2">
<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

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

```

this is my code and the challenge is still telling me that i have not given my image a border width of 10px, a border style of solid and the border around my img element is green. who can help me, please???

---

<div class="post-metadata">

**Author:** ![peterjsmyth](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/peterjsmyth/32/159049_2.png) [@peterjsmyth](https://forum.freecodecamp.org/u/peterjsmyth)\
**Post date:** [August 22, 2017, 12:36pm UTC](https://forum.freecodecamp.org/t/add-borders-around-your-elements-challenge/143146/2 "2017-08-22T12:36:40Z")

</div>

It could be a simple syntax issue.

Try putting the .thick green border class on its own line

Pete

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:41pm UTC](https://forum.freecodecamp.org/t/add-borders-around-your-elements-challenge/143146/3 "2021-01-17T20:41:45Z")

</div>

Closed on January 17, 2021, 8:41pm UTC


