/

HTML / CSS / JavaScript Tutorial

CSS Property: border-left

[this page | pdf | back links]

The CSS (CSS1) border-left property is a shorthand property combining all the main left border properties.

 

Valid property values (other than inherit or initial) are defined by the elements of the shorthand and are:

 

-        border-left-width

-        border-left-style

-        border-left-color

 

Missing properties are given their default values.

 

Default Value:

medium none color

JavaScript syntax:

e.g. object.style.borderLeft="2px solid red"

Inherited:

No

Animatable:

Yes

 

In the default value, color is the CSS colour of the element.

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile