Tutorials

CSS 'border-left' Property Explained

  • Published
  • 2 min read
  • CSS
  • HTML
  • Web Design
CSS 'border-left' Property Explained
In this article
  1. CSS 'border-left' Property Examples
  2. Browser Support For 'border-left' Property
  3. CSS Syntax of the 'border-left' Property
  4. Usage of the 'border-left' Property
  5. Property Values of the 'border-left' Property

Corrected . The browser-support table was rebuilt from MDN browser-compat-data (unprefixed support, desktop browsers), checked 3 October 2026. Editorial approval is still pending.

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

Unprefixed support for the border-left property (selected supported implementation, desktop browsers)
BrowserVersionReleased
Chrome1Dec 2008
Edge12Jul 2015
Firefox1Nov 2004
Safari1Jun 2003
Opera3.5Nov 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.

Share this article

Written by

Webzstore Team

Webzstore has helped businesses since 2010. Today, we bring websites, digital marketing and enquiry follow-up into practical plans built around the work each business needs.

Related services

Talk about your website or marketing

Book a Free 30-Minute Call

More tutorials

All tutorials

Privacy choices

Choose what this website may load. Your choice is saved on this device for up to 180 days. Privacy Policy

Turning a choice off stops further use of that optional service on this site. It does not take back information already sent, and we cannot delete cookies that other services set in your browser.