border-left-width
Description
border-left-width
sets the width for the left border.
Item | Value |
---|---|
Initial value | medium |
Inherited | No. |
Version | CSS1 |
JavaScript syntax | object.style.borderLeftWidth="thick" |
Applies to | All elements. |
Syntax and Property Values
border-left-width: non-negative length | medium | thick | thin | inherit
The property values are listed in the following table.
Value | Description |
---|---|
thin | thin border |
medium | medium border. default |
thick | thick border |
length | set the thickness |
inherit | inherit the border width from the parent element |
Example
<!DOCTYPE HTML>
<html>
<head>
<style>
div {<!--from www . j a v a2s.c om-->
border-left-style: inset;
border-left-width:6px;
}
</style>
</head>
<body>
<div>
java2s.com
</div>
</body>
</html>
The code above generates the following result.