Color of border | SoloLearn: Learn to code for FREE!


Color of border

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

6/12/2018 1:19:41 PM


4 Answers

New Answer


Yes, you can. Example:😉 border: 2px solid #00FF00


if you want to alter existing border color only, you can use border-color. eg. .box { border: 2px black solid; } .box { border-color: red; }


Use the border-style element in CSS. :)


thanks 😇