.smaller-image {
width: 100px;
}
.thick-green-border {
border-width: 10px;
}
</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>
Why does the piece of shit border width not changed?
design
2
You need set also color and style for border!
Like
border: 10px dashed red;
hi I’m struggling to go on, I have a problem here: " Add Borders Around Your Elements" https://www.freecodecamp.org/learn/responsive-web-design/basic-css/add-borders-around-your-elements
I followed all the instruction and i checked my code several times
this is what i did:
.thick-green-border {
border-width: 10px;
border-style: solid;
border-color: green;
}
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.smaller-image {
width: 100px;
}
CatPhotoApp
Click here to view more cat photos.
thanks for helping