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-width

Values:

thin | medium | thick | <length>

Initial value:

medium

Applies to:

All elements

Inherited:

No

Computed value:

Absolute length; 0 if the style of the border is none or hidden

Description:

Defines the width for the left border of an element, which will take effect only if the border’s style is something other than none. If the border style is none, the border width is effectively reset to 0. Negative length values are not permitted.

Examples:

p {border-left-width: 3em;}
pre {border-left-width: 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