+ 1
Color of border
Is there any way I can change the border color from black(default) to other colors?
4 ответов
+ 8
Yes, you can. Example:😉
border: 2px solid #00FF00
https://code.sololearn.com/WuAXBJlSQ6n4/?ref=app
+ 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;
}
+ 2
Use the border-style element in CSS. :)
+ 1
thanks 😇