CSS/Properties/border-left
From Web Education Community Group
< CSS | Properties
Contents |
border-left
The border-left property is a shorthand property for setting the width, style, and color of the left border of a box.
Description
| Values | [ <border-left-width> || <border-left-style> || <border-left-color> ] | inherit |
|---|---|
| Initial value | See individual properties |
| Applies to | all elements |
| Inherited | No |
Values
inherit
Takes the same specified value as the property for the element's parent.
And see also individual properties
Example
Example A
[style.css]
h1 {
border-bottom: 1px solid red;
}
[index.html]
<body>
<h1>CSS border property example</h1>
</body>
CSS Reference
The CSS specification defines the border-left property in 8.5.4 Border shorthand properties.

