Example

A simple border-left property example:

Laboratory

description & Usage

The left margin is determined with the border-left property.

Informations

# Description
Default Value medium none color
Inherited no
Animatable yes
Version CSS1
JavaScript syntax object.style.borderLeft="3px dotted blue"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
border-left

Syntax

Values

Values Description
border-left-width Specifies the width of the left margin.
border-left-style Determines the style and mode of the left margin.
border-left-color Sets the color of the left border.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.