Set the width of the left border using CSS

CSSWeb DevelopmentFront End Technology

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

raja
Published on 08-May-2018 12:08:56
Advertisements