how do you add an img class to img class i already have a class in the img
<img class=“smaller-image”“thick-green-border” src=“https://bit.ly/fcc-relaxing-cat” alt="A cute orange cat lying on its back. ">this is what i did and adding a comma doesnt help
Html classes img that has a class already and i want to addd another
Html classes img that has a class already and i want to addd another
0
evildead75
#1
ArielLeslie
#2
The challenge Add Borders Around Your Elements describes how to apply multiple classes to one element.
BilawalGul
#4
use the another class in the same class like this you can use the multiple classse in same class.
<img src="somthing.jpg" alt="this_image" class="smaller-image img-circled img-fluid"
ptamaro
#5
To add more than one class to an element, just separate the class names with a space. For example, I added two classes classes to your image below…
<img class=“smaller-image thick-green-border” src=’//discourse-user-assets.s3.amazonaws.com/original/3X/6/1/61a3499c5abb165be990aa0c1abd23342e60c663.jpg’ alt=“A cute orange cat lying on its back.” />
Try it to make sure it works. Hope that helps