# Add Rounded Corners with a Border Radius

**URL:** <https://forum.freecodecamp.org/t/add-rounded-corners-with-a-border-radius/142413>\
**Category:** General\
**Created:** [August 18, 2017, 2:21am UTC](https://forum.freecodecamp.org/t/add-rounded-corners-with-a-border-radius/142413 "2017-08-18T02:21:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonDevOps](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jondevops/32/64592_2.png) [@JonDevOps](https://forum.freecodecamp.org/u/JonDevOps)\
**Post date:** [August 18, 2017, 2:21am UTC](https://forum.freecodecamp.org/t/add-rounded-corners-with-a-border-radius/142413/1 "2017-08-18T02:21:55Z")

</div>

**Tell us what’s happening:**

How do i add the css property called border-radius to the .smaller-image class?

**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;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
  }

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

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

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

```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; rv:54.0) Gecko/20100101 Firefox/54.0`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/add-rounded-corners-with-a-border-radius](https://www.freecodecamp.org/challenges/add-rounded-corners-with-a-border-radius)

---

<div class="post-metadata">

**Author:** ![btlsp2000](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@btlsp2000](https://forum.freecodecamp.org/u/btlsp2000)\
**Post date:** [August 18, 2017, 3:25am UTC](https://forum.freecodecamp.org/t/add-rounded-corners-with-a-border-radius/142413/3 "2017-08-18T03:25:10Z")

</div>

border-radius:10%;  
border: 1 solid #000;

---

<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:42pm UTC](https://forum.freecodecamp.org/t/add-rounded-corners-with-a-border-radius/142413/4 "2021-01-17T20:42:14Z")

</div>

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


