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

+1

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

sumi

4 Answers

New Answer

+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 😇