Syntax | selector {border-left-color: value;}
|
---|---|
Usage | The border-left-color property is used to specify the color of the left border. See the Box Model for a description of the boxes that are generated for elements and the relative position of the borders. This property is specified by using a color-value, or a keyword, according to the syntax shown above. CSS Example: The border-left-color property is set using the keyword red. h1 {border: medium solid black;
border-left-color: red;
} CSS Example: The border-left-color property is set using a RGB 6-Digit Hexadecimal value of #ffa500. h1 {border: medium solid black;
border-left-color: #ffa500;
} CSS Example: The border-left-color property is set using a RGB Percentage Functional Notation value of rgb(30%,50%,70%). h1 {border: medium solid black;
border-left-color: rgb(30%,50%,70%);
} |
Keywords |
|
Applies To | All elements |
Inherited | No |
Initial Value | The same as the value of the color property |
The border-left-color property is set using the keyword red. The border-left-color property is set using a RGB 6-Digit Hexadecimal value of #ffa500. The border-left-color property is set using a RGB Percentage Functional Notation value of rgb(30%,50%,70%). |