Add border color, border width, border style

please i am having issues with setting my image to thick green border with a border style, can someone help with the full code. i would really appreciate it if anyone can help with the full pictures of what the code looks like.https://www.freecodecamp.org/challenges/add-borders-around-your-elements

1 Like

What part are you having trouble with? The image element should look 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. ">

Here is the solution of mine

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

add class named thick-green-border to your img tag and declare a class named .thick-green-border in under the style tag. and add border properties.

`

you have error in your code.
try this:
> .thick-green-border{
> border-style:solid;
> border-width:10px;
> border-color:green;
>
> }

separate properties with semi-colon. and thick-green is not a color . replace it with green

2 Likes