CSS border-left Property Reference

The CSS border-left property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

CSS border-left Property Reference

The CSS border-left property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

border-left overview

The CSS border-left property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

border-left formal syntax
FieldValue
Formal syntax<line-width> || <line-style> || <color>
Initial valueborder-left-width, border-left-style, border-left-color
Applies toallElements
InheritedNo
Percentagesno
Computed valueborder-left-width, border-left-style, border-left-color
Animation typeborder-left-width, border-left-style, border-left-color
Mediavisual
Specification groupCSS Backgrounds and Borders
StatusStandard

Practical examples

These declarations demonstrate valid ways to set border-left. The initial and inherit global keywords remain available even when a property-specific value is preferable.

border-left live example
CSS .reset-example { border-left: initial; } .inherit-example { border-left: inherit; } @supports (border-left: initial) { .supported { border-left: initial; } }

Description

The CSS border-left property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: border-left
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies