Property: Border color
Usage:
border-color: red;
border-color: #454545;
border-color: rgb(123,123,123);
Definition:
The border of any object can be set with any color using the tag/argument border-color.
border-color will not take effect with out border style. Border style can be set using "border-style"
It takes the following values.
a)red : The border color can be set using text names of colors.
b)#454545 : The border color can be set using hexadecimal color code.
c)rgb(x,y,z) : The border color can be set rgb code.
Example 1:
<div style="border-width: 4px; border-style: solid; border-color: red; ">testing border color</div>
Result:
testing border color
Example 2:
<font style="border-width: 4px; border-style: solid; border-color: #454545;">testing border color</font>
Result:
testing border color
Example 3:
<div style="border-width: 4px; border-style: solid; border-color: rgb(125,125,125);">testing border color</div>
Result:
testing border color
|