CSS Border-left property

Examples

Set left border style:

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


Attribute definitions and instructions

border-left shorthand property to set all the attributes of the left border to a statement.

You can set the following properties in order: border-left-width, border-left-style, and border-left-color.

If you do not set a value which will not go wrong, such as border-left: solid # ff0000; also permitted.

Defaults: not specified
Inherited: no
version: CSS1
JavaScript syntax: object .style.borderLeft = "3px solid blue"


Browser Support

Figures in the table represent the first browser to support the version number of the property.

属性
border-left 1.0 4.0 1.0 3.5 1.0

Property Values

value description
border-left-width A predetermined width of the left border. See: border-left-width of the possible values.
border-left-style Provisions of the left border style. See: border-left-style for possible values.
border-left-color Predetermined color of the left border. See: border-left-Color of possible values.
inherit Provisions should inherit the setting border-left property from the parent element.


related articles

CSS tutorial: CSS Border