Hey I donknow what happened,the border is not working and y don we use one class zat is the one which was zer and we can use it for both the border style

Hey I donknow what happened,the border is not working and y don we use one class zat is the one which was zer and we can use it for both the border style
0.0 0

#1

Tell us what’s happening:
.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;
}

CatPhotoApp

<img class=“smaller-image” “thick-green-border” src=“https://bit.ly/fcc-relaxing-cat” alt="A cute orange cat lying on its back. ">

Your code so far

<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" "thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

#2

class=“smaller-image” “thick-green-border”

should be

class=“smaller-image thick-green-border”


#3

I’m stuck on the same bit. I can get the green border by putting a 1 next to class but then the image goes larger, cant get both


#4

You can put as many classes as you want, just use one set of quotes with a single space between each class.


#5

Excellent Got it, thanks alot :slight_smile:


#6

oh thank u i hvnt noticed it,it worked


#7

Don’t separate the classes by quotes. A space is what’s needed. In css class names use a dash instead of space to prevent mix ups.

Welcome to the fourms. Try to use a shorter title name and add more of a description. This attracts a boarder range of people. Happy coding :smiley: we are here to help.