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
<!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>