border left

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

CSS border-left Property

Example

Set the style of the left border:

{
    border-style: solid;
    border-left: thick double #ff0000;

}

Definition and Usage

The border-left shorthand property sets all the left border properties in one declaration.

The properties that can be set, are (in order): border-left-width, border-left-style, and border-left-color.

It does not matter if one of the values above are missing, e.g. border-left:solid #ff0000; is allowed.

Property Values

Value Description
border-left-width Specifies the width of the left border. Default value is "medium"
border-left-style Specifies the style of the left border. Default value is "none"
border-left-color Specifies the color of the left border. Default value is the color of the element