The border-left
property specifies the width, line style, and color of the left border of an element. It is a shorthand property for setting in one declaration the width, the style, and the color of an element's left border.
Set the style of the left border of <h1>
for different elements.
h1 { border-left: 5px solid red; }
border-left: border-width border-style border-color;
border-style
is not provided, the default is no border.border-color
is chosen, the border color will match the current text color.border-width
is not provided, the default is medium
.For more information, see http://www.w3schools.com/cssref/pr_border-left.asp
Found a bug in the documentation? Let us know at documentation@code.org