The CSS 'border-left' property is a shorthand specifying an element's left border's width, style, and color. This property combines three aspects of border styling (width, style, color) for the left side into one declaration, making it easier to read and write CSS related to border styling on the left side of an element.
CSS 'border-left' Property Examples
See the Pen CSS 'border-left' Property by Webzstore (@webzstore) on CodePen.
The 'border-left' property offers a powerful and flexible way to customize the appearance of an element's left border, supporting the creation of visually engaging and distinct designs.
Browser Support For 'border-left' Property
| Browser | Version | Released |
|---|---|---|
| Chrome | 1 | Dec 2008 |
| Edge | 12 | Jul 2015 |
| Firefox | 1 | Nov 2004 |
| Safari | 1 | Jun 2003 |
| Opera | 3.5 | Nov 1998 |
Source: MDN browser-compat-data 8.1.4, checked 3 October 2026. Prefixed support and implementations that were later removed are not counted, and some browsers list partial support or extra values. See the MDN reference for border-left for the full compatibility details, including mobile browsers.
CSS Syntax of the 'border-left' Property
border-left: width style color | initial | inherit;
Usage of the 'border-left' Property
Utilize 'border-left' to define or alter the appearance of an element's left border. This property is especially useful for creating visually distinct boundaries or accents on the left side of elements within a layout, offering a concise method to simultaneously apply or adjust multiple border characteristics.
Property Values of the 'border-left' Property
- Width: Specifies the thickness of the border. Acceptable values include length units (e.g., px, em) and predefined thickness keywords (thin, medium, thick).
- Style: This determines the border's line style (none, solid, dotted, dashed, double, etc.).
- Color: Sets the border's color using any standard CSS color values (named colors, HEX, RGB(a), HSL(a)).
- Initial: Resets the 'border-left' to its default value.
- Inherit: Inherits the 'border-left' from the parent element.



