Name

border-left-width

Values:

thin | medium | thick | <length> | inherit

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:

This sets 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, then 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;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Get CSS Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.