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>
      p {border: 3px solid chocolate; padding: 10px; border-left-width: 10px;}

   <p>This is a para.</p>

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:

  • thin - used to define thin left border
  • medium - used to define medium left border
  • thick - used to define thick left border
  • length - used to define custom size left border
  • initial - used to define the default value for the size of left border
  • inherit - used to inherit the value from its parent

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

CSS Online Test

« Previous Tutorial Next Tutorial »

Follow/Like Us on Facebook

Subscribe Us on YouTube