- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
<!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
- Related Articles
- Set the width of image border with CSS
- Set the border image width with CSS
- Animate CSS border-left-width property
- Set border width with CSS
- How to set the width of the left border with JavaScript?
- Usage of border-left-width property in CSS
- Set bottom-left corner border with CSS
- Set top-left corner border with CSS
- Set the style of the bottom border using CSS
- Set the color of the right border using CSS
- The border-width Property in CSS
- Change the width of the bottom border with CSS
- CSS border-image-width
- Change the style of left border with CSS
- Change the color of the left border with CSS

Advertisements