+ 1

Color of border

Is there any way I can change the border color from black(default) to other colors?

12th Jun 2018, 1:19 PM
sumi
sumi - avatar
4 Antworten
+ 8
Yes, you can. Example:😉 border: 2px solid #00FF00 https://code.sololearn.com/WuAXBJlSQ6n4/?ref=app
12th Jun 2018, 1:25 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 3
if you want to alter existing border color only, you can use border-color. eg. .box { border: 2px black solid; } .box { border-color: red; }
12th Jun 2018, 4:16 PM
Calviղ
Calviղ - avatar
+ 2
Use the border-style element in CSS. :)
12th Jun 2018, 1:27 PM
Tony
Tony - avatar
+ 1
thanks 😇
12th Jun 2018, 1:47 PM
sumi
sumi - avatar