Add Borders Around Your Elements- what can i doo?

Tell us what’s happening:

Your code so far

<link href="" rel="stylesheet" type="text/css">
  .red-text {
    color: red;

  h2 {
    font-family: Lobster, monospace;

  p {
    font-size: 16px;
    font-family: monospace;

  .smaller-image {
    width: 100px;
  border-width: 10px;

<h2 class="red-text">CatPhotoApp</h2>
  <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="" alt="A cute orange cat lying on its back."></a>
    <p>Things cats love:</p>
      <li>cat nip</li>
      <li>laser pointers</li>
    <p>Top 3 things cats hate:</p>
      <li>flea treatment</li>
      <li>other cats</li>
  <form action="/submit-cat-photo">
    <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
    <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
    <label><input type="checkbox" name="personality" checked> Loving</label>
    <label><input type="checkbox" name="personality"> Lazy</label>
    <label><input type="checkbox" name="personality"> Energetic</label><br>
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 7.1.1; XT1562 Build/NPD26.48-24-1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36 OPR/46.3.2246.127744.

Link to the challenge:

You need to create a class called .thick-green-border and apply that the the image, rather than using the img element selector

1 Like

to add to what Gwesolo was saying, please note the instructions say:

Create a class called thick-green-border. This class should add a 10px, solid, green border around an HTML element. Apply the class to your cat photo.

When someone says ‘create a class’, they mean add a new class to your element.
Eg. create a new class ‘answer’ in your p element, then you would do this:

<p class="answer">
Then when you are asked to style that class you go to your css (inside the <style> element) and write 
.answer { /** put all my style elements for answer here ***/
  color: red;

hope this helps.

1 Like

Create a class called thick-green-border. Than given the border property and value 10px solid green. Finally apply the class to your cat photo. that’s it!

1 Like

sorry i still dont get it. please give explanation using the code above.

Up in the css section, you’ll define a class (starts with a ‘.’) called thick-green-border:

  .thick-green-border {
    border: 10px solid green;

Then in the html portion, change your < img . . . like so:

<img class="smaller-image thick-green-border" src="" alt="A cute orange cat lying on its back.">

The image now has two classes applied to it, smaller-image and thick-green-border.