Set the width of the left border using CSS

To set the width of the left border, use the border-left-width property in CSS. You can try to run the following code to implement the border-left-width property −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         p {
            border-style: dashed;
            border-left-width: 10px;
         }
      </style>
   </head>
   <body>
      <p>This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.</p>
   </body>
</html>

Output

Updated on: 2020-06-21T10:20:40+05:30

73 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements