CSS: border-style, border-width unreadable

CSS: border-style, border-width unreadable
0

#1

Hello,

Im now learning how to create styled borders around the image - have tried to reset the lesson and to re-check so many times but can´t see anything wrong, however when i run the test it wouldn´t pass and won´t be seen - i still get advised to give im img a border style & width.
I have tried to use it on the title instead of the image and it functioned ok.
I am using Chrome… should that matter. Could you advise?

<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>
<main>
  <p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>
  
  <a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

#2

Can you post a link to the challenge so I can understand what the question is?


#3

after solid you have a comma instead of a semicolon

it should be solid;
instead of solid,


#4

sorry, here it is: https://learn.freecodecamp.org/responsive-web-design/basic-css/add-borders-around-your-elements


#5

Like @jeltehomminga said,

go head and replace comma with semicolon in this line.

border-style: solid,