CSS border-left-width (Set/Change Width of Left Border)

The CSS border-left-width property is used when we need to set the width of left border of an element. For example:

HTML with CSS Code
<!DOCTYPE html>
<html>
<head>
   <style>
      p {border: 3px solid chocolate; padding: 10px; border-left-width: 10px;}
   </style>
</head>
<body>

   <p>This is a para.</p>
   
</body>
</html>
Output

This is a para.

CSS border-left-width Syntax

The syntax of border-left-width property in CSS, is:

border-left-width: x;

The value of x should be any of the following:

Note - In all the above, the medium is the default value.

CSS Online Test


« Previous Tutorial Next Tutorial »