# Borders in elements

**URL:** <https://forum.freecodecamp.org/t/borders-in-elements/179512>\
**Category:** General\
**Created:** [March 13, 2018, 2:12pm UTC](https://forum.freecodecamp.org/t/borders-in-elements/179512 "2018-03-13T14:12:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klaudia](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@Klaudia](https://forum.freecodecamp.org/u/Klaudia)\
**Post date:** [March 13, 2018, 2:12pm UTC](https://forum.freecodecamp.org/t/borders-in-elements/179512/1 "2018-03-13T14:12:38Z")

</div>

Can you help me? Because i didn’t know how to do it

**Your code so far**

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

<img class="smaller-image" 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>

```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/add-borders-around-your-elements](https://www.freecodecamp.org/challenges/add-borders-around-your-elements)

---

<div class="post-metadata">

**Author:** ![Feight](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@Feight](https://forum.freecodecamp.org/u/Feight)\
**Post date:** [March 13, 2018, 2:19pm UTC](https://forum.freecodecamp.org/t/borders-in-elements/179512/2 "2018-03-13T14:19:38Z")

</div>

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

}

```

do you see how the first CSS is a class, and the second isn’t? whats missing? (the second is a html element, not a class)

---

<div class="post-metadata">

**Author:** ![Klaudia](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@Klaudia](https://forum.freecodecamp.org/u/Klaudia)\
**Post date:** [March 13, 2018, 2:28pm UTC](https://forum.freecodecamp.org/t/borders-in-elements/179512/3 "2018-03-13T14:28:08Z")

</div>

I do it but it doesn’t apper something it tell me it’s wrong.

---

<div class="post-metadata">

**Author:** ![Feight](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@Feight](https://forum.freecodecamp.org/u/Feight)\
**Post date:** [March 13, 2018, 2:31pm UTC](https://forum.freecodecamp.org/t/borders-in-elements/179512/4 "2018-03-13T14:31:54Z")

</div>

yes, it is, it should be referring to a class selector ( “.CLASS” ) not a html selector ( h2, body, p ) you forgot the “.”

---

<div class="post-metadata">

**Author:** ![Klaudia](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@Klaudia](https://forum.freecodecamp.org/u/Klaudia)\
**Post date:** [March 13, 2018, 2:39pm UTC](https://forum.freecodecamp.org/t/borders-in-elements/179512/5 "2018-03-13T14:39:47Z")

</div>

Can you send me a photo how do you do it? I’m sorry for all of this questions but because i’m first i want to learn about the programming.

---

<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:24pm UTC](https://forum.freecodecamp.org/t/borders-in-elements/179512/6 "2021-01-17T20:24:27Z")

</div>

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


