O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

border-left

Values:

<'border-width'> || <'border-style'> || <color>

Initial value:

Not defined for shorthand properties

Applies to:

All elements

Inherited:

No

Computed value:

See individual properties

Description:

A shorthand property that property defines the width, color, and style of the left border of an element. As with border, omission of a border style will result in no border appearing.

Examples:

p {border-left: 3em solid gray;}
pre {border-left: double black 4px;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required