border-left
A shorthand for setting the physical left border's width, style, and color in one line. Perfect for adding a simple vertical line to the side of an element.
It is documented as part of the CSS Backgrounds and Borders specification.
Syntax
/* Usage Example */
blockquote {
/* physical shorthand: width | style | color */
border-left: 5px solid #7c3aed;
padding-left: 1rem;
}
/* Global values */
border-left: inherit;
border-left: initial;
border-left: revert;
border-left: revert-layer;
border-left: unset;
border-left Browser support
Widely available
Since
2015 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
1+
1+
1+
12+