+ 2

Border color

how can i change the border color? <img src = "https://img.coopathome.ch/produkte/300_300/RGB/3697506_001.jpg?_=1455455159500" height = "250" width = "300" border =/>

15th May 2017, 10:09 PM
TrueJu
TrueJu - avatar
4 Answers
+ 4
thx
15th May 2017, 10:42 PM
TrueJu
TrueJu - avatar
+ 2
use rule: border-color: red; // styles all the borders to red border-color: red green; // styles top and bottom to red, the others to green border-color: red green blue; // styles top to red right and left to green and bottom to blue border-color: red green blue yellow; // styles top to red, right to green, bottom to blue and left to yellow. https://www.w3schools.com/cssref/pr_border-color.asp
15th May 2017, 10:29 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
include in your IMG class and assign it: border: 1px solid red; in css file For example: Border color <img src = "https://img.coopathome.ch/produkte/300_300/RGB/3697506_001.jpg=1455455159500" height = "250" width = "300" class="border_color" /> <style> .border_color{border-color: 1px solid red;} </style>
15th May 2017, 10:41 PM
Mr. Nobody
Mr. Nobody - avatar
0
Nice one
17th May 2017, 3:43 PM
Thomous
Thomous - avatar