Ask coding questions

← Back to all posts
How to make a boarder around the photo
JohnBarnhart (11)

How to make a boarder around the photo

Answered by tussiez (1511) [earned 5 cycles]
View Answer
Comments
hotnewtop
tussiez (1511)
<img src="https://hey.foodandmoarfood.repl.co/img/wheat.png" style="border: 2px solid black;">
JohnBarnhart (11)

@tussiez Thank you! This will go great with my Chatbot.

Bookie0 (5971)

you can do what tussiez said, or in the css file:

img {
  border: 2px solid black;
}

Which does the same thing, except it'll apply for every image.

You can change the thickness by changing the number before px, and you can change solid to dotted, outset, inset, etc.
And you can change the color to a hex color or rgb or whatever.

Check out more here :)